public class Processing extends ProcessCoop
WorkStation where a Worker process or a
MachineProcess are processing some parts (products) to
manufacture some new parts (or products). The kind and the number of parts
being processed are determined by a PartsList. The parts (or
products) are represented by SimProcess es. The
Worker and the MachineProcess are also some
kind of SimProcess es. But one Worker or
MachineProcess is the master process and the other processes
are all slave processes. It is intended that that this Processing is used
with the WorkStation construct, where a master process (
Worker or MachineProcess) is waiting for parts
or products (slave processes) to process them. During the Processing the
master process is active and the slave processes are passive. The processing
taking place at the WorkStation is described in the method
cooperation, which should be overwritten by the user to model
the manufacturing process taking place at the WorkStation.
Until now this method only models the time it takes to process the parts in
some way. Note: when using the WorkStation construct the
master (Worker or MachineProcess) will be activated after the processing is
done and the slave processes will be activated after the master (if they have
not been activated during the processing process already).WorkStation| Constructor and Description |
|---|
Processing(Model owner,
java.lang.String name,
NumericalDist<?> processTimeStream,
boolean showInTrace)
Constructs a Processing process where a master (
Worker or
MachineProcess) is processing slaves (
SimPorcess es) in a cooperate manufacturing process. |
| Modifier and Type | Method and Description |
|---|---|
void |
setProcessingTimeStream(NumericalDist<?> newProcessingTimeStream)
Sets the processingTimeStream 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, traceOngetName, getQuotedName, toStringpublic Processing(Model owner, java.lang.String name, NumericalDist<?> processTimeStream, boolean showInTrace)
Worker or
MachineProcess) is processing slaves (
SimPorcess es) in a cooperate manufacturing process. The
time it takes to process the parts is determined by the specified
processTimeStream.owner - desmoj.Model : The model this Processing is associated to.name - java.lang.String : The name of this Processing.processTimeStream - NumericalDist> : The random number stream determining
the time it takes to process the parts.showInTrace - boolean : Flag, if this Processing should produce a trace
output or not.public void setProcessingTimeStream(NumericalDist<?> newProcessingTimeStream)
RealDist random
number stream.newProcessingTimeStream - NumericalDist> : The new RealDist random
number stream determining the time it takes to process the
parts.