public abstract class ProcessCoop<M extends SimProcess,S extends SimProcess> extends ModelComponent
WaitQueue
construct, where one process is the master which
really executes the cooperation and the other process is the slave waiting
for a master to lead him through the cooperation. That means that during the
cooperation the master is active and the slave is passive. The action carried
out for the two processes together is described in the virtual method
cooperation
, which is to be implemented by the user building the
model. This class is encapsulating the cooperation of (at least) these two
processes. When using the WaitQueue construct the master will be activated
after the cooperation is done and the slave will be activated after the
master (if it has not been activated during the cooperation already).WaitQueue
Constructor and Description |
---|
ProcessCoop(Model owner,
java.lang.String name,
boolean showInTrace)
Constructor for a ProcessCoop where a master and a slave process are
cooperating.
|
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 ProcessCoop(Model owner, java.lang.String name, boolean showInTrace)
owner
- Model : The model this ProcessCoop is associated to.name
- java.lang.String : The ProcessCoop's nameshowInTrace
- boolean : Flag for trace to produce trace messages.