public class Transportation extends ProcessCoop
Transporter
process and the goods (products represented by
Sim-processes) he is transporting. It is intended that that this
Transportation is used with the TransportJunction
construct,
where a Transporter
( as a master process) is waiting for
goods (slave processes) to carry them around in the manufacturing system.
During the Transportation the master is active and the slaves are passive.
The transportation carried out together is described in the method
cooperation
, which can be overwritten by the user to build
more complex models. Until now this method only models the time it takes to
transport the goods. Note: when using the TransportJunction
construct the master (Transporter) will be activated after the transportation
is done and the slaves will be activated after the master (if they have not
been activated during the transportation already).TransportJunction
Constructor and Description |
---|
Transportation(Model owner,
java.lang.String name,
NumericalDist<?> transportTimeStream,
boolean showInTrace)
Constructs a Transportation process where a master (
Transporter ) is transporting slaves (
SimPorcess es) in a cooperate process. |
Modifier and Type | Method and Description |
---|---|
void |
setTransportTimeStream(NumericalDist<?> newTransportTimeStream)
Sets the transportTimeStream to a new
RealDist random
number stream. |
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public Transportation(Model owner, java.lang.String name, NumericalDist<?> transportTimeStream, boolean showInTrace)
Transporter
) is transporting slaves (
SimPorcess
es) in a cooperate process. The time it takes
to transport the goods is determined by the specified
transportTimeStream.owner
- desmoj.Model : The model this Transportation is associated to.name
- java.lang.String : the name of this Transportation.transportTimeStream
- NumericalDist> : The random number stream determining
the time it takes to transport the goods.showInTrace
- boolean : Flag, if this Transportation should produce a trace
output or not.public void setTransportTimeStream(NumericalDist<?> newTransportTimeStream)
RealDist
random
number stream.newTransportTimeStream
- NumericalDist> : The new RealDist
random
number stream determining the time it takes to transport the
goods.