public abstract class MachineProcess extends SimProcess
WorkStation and processing parts (products or goods) there.
MachineProcess is derived from SimProcess. Its lifeCycle()
must be implemented by the user in order to specify the behavior of the
MachineProcess.SimProcess,
Processing,
WorkStation| Constructor and Description |
|---|
MachineProcess(Model owner,
java.lang.String name,
boolean showInTrace)
A standard constructor for a MachineProcess needs a model he belongs to,
a name and a flag stating if trace messages of this MachineProcess should
be displayed in the trace file.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
lifeCycle()
Override this method in a subclass of MachineProcess to implement the
MachineProcess specific behaviour.
|
activate, activate, activate, activateAfter, activateBefore, activatePreempt, cancelInterruptDelayed, canCooperate, clearInterruptCode, cooperate, getActivatedBy, getInterruptCode, getInterruptException, getMaster, getRealTimeConstraint, getSchedulingPriority, getSlaveWaitQueue, getSupervisor, hold, hold, hold, interrupt, interrupt, interruptDelayed, interruptDelayed, isBlocked, isComponent, isDelayedInterruptScheduled, isInterrupted, isRepeating, isTerminated, obtainResources, passivate, prepareTransport, reActivate, reActivate, resetMaster, returnAllResources, returnResources, setBlocked, setRealTimeConstraint, setRepeating, setSchedulingPriority, setSlaveWaitQueuegetIdentNumber, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, schedulePreempt, schedulePreempt, schedulePreempt, setQueueingPriorityassignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportablecurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic MachineProcess(Model owner, java.lang.String name, boolean showInTrace)
owner - desmoj.Model : The model this MachineProcess is associated to.name - java.lang.String : The name of this MachineProcess.showInTrace - boolean : Flag, if trace messages of this MachineProcess
should be displayed in the trace file or not.public abstract void lifeCycle()
throws co.paralleluniverse.fibers.SuspendExecution
WorkStation for parts
to process them, like WorkStationXY.cooperate(processing);lifeCycle() method starts after a MachineProcess has
been created and activated by the scheduler. It describes the behavior of
this special MachineProcess when he is acting alone. All action taking
place when this MachineProcess (as a master) acts together with other
SimProcess es (as slaves) in some process cooperation is
described in that special cooperation method of the class
Processing.lifeCycle in class SimProcessco.paralleluniverse.fibers.SuspendExecution