public class FIFO_Transport_Strategy extends ModelComponent implements TransportStrategy
Job
in the queue of jobs is assigned to the first transporter
in the queue of transportes. The FIFO_Transport_Strategy implements the
method getJobs (ProcessQueue Transporter, Queue Jobs) of the
TransportStategy
. The FIFO_Transport_Strategy is derived from
ModelComponent.TransportStrategy
,
TransporterJob
,
T_Control
,
ModelComponent
Constructor and Description |
---|
FIFO_Transport_Strategy(Model owner)
Constructs the FIFO_Transport_Strategy that a transporter control uses by
the assigning of the jobs to transporters the following way: the first
Job in the queue of jobs is assigned to the first
transporter in the queue of transportes. |
Modifier and Type | Method and Description |
---|---|
TransporterJob[] |
getJobs(ProcessQueue transporters,
Queue jobs)
This method describes the following way of the assigning the jobs to
transporters: the first job in the queue of the jobs will be assigned to
the first transporter in the queue of the transpoters, this each
assignment will be stored in a
TranspoterJob . |
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 FIFO_Transport_Strategy(Model owner)
Job
in the queue of jobs is assigned to the first
transporter in the queue of transportes.owner
- desmoj.Model : The model this FIFO_Transport_Strategy is
associated to.public TransporterJob[] getJobs(ProcessQueue transporters, Queue jobs)
TranspoterJob
. All the
assignments are used by the transport control.getJobs
in interface TransportStrategy
Jobs
- Queue
: The queue with the jobs of the
transporter control.TransporterJob
[] : The pairs of the transporters
with the their assigned jobs.