org.mars_sim.msp.simulation.manufacture
Class ManufactureProcess

java.lang.Object
  extended by org.mars_sim.msp.simulation.manufacture.ManufactureProcess
All Implemented Interfaces:
java.io.Serializable

public class ManufactureProcess
extends java.lang.Object
implements java.io.Serializable

A manufacturing process.

See Also:
Serialized Form

Constructor Summary
ManufactureProcess(ManufactureProcessInfo info, Manufacture workshop)
          Constructor
 
Method Summary
 void addProcessTime(double processTime)
          Adds process time to the process.
 void addWorkTime(double workTime)
          Adds work time to the process.
 ManufactureProcessInfo getInfo()
          Gets the information about the process.
 double getProcessTimeRemaining()
          Gets the remaining process time.
 Manufacture getWorkshop()
          Gets the manufacture building function.
 double getWorkTimeRemaining()
          Gets the remaining work time.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManufactureProcess

public ManufactureProcess(ManufactureProcessInfo info,
                          Manufacture workshop)
Constructor

Parameters:
info - information about the process.
Method Detail

getInfo

public ManufactureProcessInfo getInfo()
Gets the information about the process.

Returns:
process information

getWorkTimeRemaining

public double getWorkTimeRemaining()
Gets the remaining work time.

Returns:
work time (millisols)

addWorkTime

public void addWorkTime(double workTime)
Adds work time to the process.

Parameters:
workTime - work time (millisols)

getProcessTimeRemaining

public double getProcessTimeRemaining()
Gets the remaining process time.

Returns:
process time (millisols)

addProcessTime

public void addProcessTime(double processTime)
Adds process time to the process.

Parameters:
processTime - process time (millisols)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getWorkshop

public Manufacture getWorkshop()
Gets the manufacture building function.

Returns:
manufacture building function.