public class T_Control extends SimProcess
Jobs from this control that assignes the
job to them by using a certain TransportStrategy. Its
lifeCycle() is already implemented and spezifies the behavior
of the transport control.TransportStrategy,
TransporterSystem| Constructor and Description |
|---|
T_Control(Model owner,
java.lang.String name,
int tSortOrder,
int tQCapacity,
int jSortOrder,
int jQCapacity,
TransportStrategy s,
boolean showInReport,
boolean showInTrace)
Constructor for a transport control T_Control for the transporters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addJob(Job j)
This method is used to add the job to the transport control to get
assigned to a transporter.
|
void |
addTransporter(InternalTransporter t)
This method is used by an internal transporter to inform his transporter
control that he is idle now (without a job).
|
TransportStrategy |
getTransportStrategy()
Returns the transport strategy of this transport control.
|
TransporterSystem |
getTS()
Returns the transporter system of this transport control.
|
void |
lifeCycle()
This method implements the transporter control specific behaviour.
|
void |
setTransportStrategy(TransportStrategy s)
Sets the transport strategy of this transporter control to a new value.
|
void |
setTS(TransporterSystem ts)
Sets the transport system of this transporter control to a new value.
|
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 T_Control(Model owner, java.lang.String name, int tSortOrder, int tQCapacity, int jSortOrder, int jQCapacity, TransportStrategy s, boolean showInReport, boolean showInTrace)
owner - Model : The model this T_Control is associated to.name - java.lang.String : The T_Control's nametsortOrder - int : determines the sort order of the underlying transporter
queue implementation. Choose a constant from
QueueBased like QueueBased.FIFO
or QueueBased.LIFO or ...tQCapacity - int : The capacity of the transporter queue, that is how many
transporters can be enqueued. Zero (0) means unlimited
capacity.jsortOrder - int : determines the sort order of the underlying jobs queue
implementation. Choose a constant from QueueBased
like QueueBased.FIFO or
QueueBased.LIFO or ...jQCapacity - int : The capacity of the jobs queue, that is how many jobs
can be enqueued. Zero (0) means unlimited capacity.s - TransportStrategy : The strategy that this T_Control uses to
assign the jobs to the transporters.showInReport - boolean : Flag, if T_Control (its TransporterSystem) should
produce a report or not.showInTrace - boolean : Flag for trace to produce trace messages.public void addJob(Job j)
t - Job: The Job that must be assigned to a
transporter.public void addTransporter(InternalTransporter t) throws SuspendExecution
t - InternalTranspoter: The InternalTransporter
that is idle.SuspendExecutionpublic void lifeCycle()
throws SuspendExecution
lifeCycle in class SimProcessSuspendExecutionpublic TransporterSystem getTS()
TransporterSystem: The transporter system of this
transporter control.public void setTS(TransporterSystem ts)
ts - TransporterSystem : The new transport system of this
transporter control.public void setTransportStrategy(TransportStrategy s)
s - TransportStrategy : The new transport strategy of this
transporter control.public TransportStrategy getTransportStrategy()
TransportStrategy: The transport strategy of this
transporter control.