public class C_Control extends SimProcess
lifeCycle()
is
already implemented and spezifies the behavior of the crane control.SimProcess
,
CranesSystem
Constructor and Description |
---|
C_Control(Model owner,
java.lang.String name,
int cQSortOrder,
int cQCapacity,
int tQSortOrder,
int tQCapacity,
boolean showInReport,
boolean showInTrace)
Constructor for a crane control C_Control for the cranes.
|
Modifier and Type | Method and Description |
---|---|
void |
CraneIsIdle()
This method is used by a crane to send the message to this crane control
that it is idle and waits on its serving.
|
CranesSystem |
getCS()
Returns the cranes system of this crane control.
|
void |
lifeCycle()
This method implements crane control specific behaviour.
|
void |
serveCrane()
This method implements the specific behaviour of the crane control if a
crane is idle must be served by this control.
|
void |
serveTransporter()
This method implements the specific behaviour of the crane control if a
transporter arrives and must be served by this control.
|
void |
transporterArrival()
This method is used by a transporter (external/internal) to send the
message to this crane control that it arrives and waits on its serving.
|
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, setSlaveWaitQueue
getIdentNumber, 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, setQueueingPriority
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportable
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 C_Control(Model owner, java.lang.String name, int cQSortOrder, int cQCapacity, int tQSortOrder, int tQCapacity, boolean showInReport, boolean showInTrace)
owner
- Model : The model this C_Control is associated to.name
- java.lang.String : The C_Control's namecsortOrder
- int : determines the sort order of the underlying cranes queue
implementation. Choose a constant from QueueBased
like QueueBased.FIFO
or
QueueBased.LIFO
or ...cQCapacity
- int : The capacity of the cranes queue, that is how many
cranes can be enqueued. Zero (0) means unlimited capacity.tsortOrder
- int : determines the sort order of the underlying transporters
queue implementation. Choose a constant from
QueueBased
like QueueBased.FIFO
or QueueBased.LIFO
or ...tQCapacity
- int : The capacity of the transporters queue, that is how many
transporters can be enqueued. Zero (0) means unlimited
capacity.showInReport
- boolean : Flag, if C_Control (its CranesSystem) should produce
a report or not.showInTrace
- boolean : Flag for trace to produce trace messages.public CranesSystem getCS()
CranesSystem
: The crane system of this crane
control.public void transporterArrival() throws SuspendExecution
SuspendExecution
public void CraneIsIdle() throws SuspendExecution
SuspendExecution
public void lifeCycle() throws SuspendExecution
lifeCycle
in class SimProcess
SuspendExecution
public void serveTransporter()
public void serveCrane()