public class TransporterSystem extends QueueBased
QueueBasedQueueBased.QueueActionFIFO, LIFO, RANDOM, UNDEFINED| Constructor and Description |
|---|
TransporterSystem(Model owner,
java.lang.String name,
int tSortOrder,
int tQCapacity,
int jSortOrder,
int jQCapacity,
boolean showInReport,
boolean showInTrace)
Constructor for a TransporterSystem.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addJob(Job j)
This method is used to add the job to the jobs queue of this
TransporterSystem.
|
void |
addSumDistanceEmptyDrives(double d)
Change the whole distance of the empty drives of all the transporters to
a new value.
|
void |
addSumDistanceLoadedDrives(double d)
Change the whole distance of the loaded drives of all the transporters to
a new value.
|
void |
addSumNumEmptyDrives(long n)
Change the number of the empty drives of all the transporters to a new
value.
|
void |
addSumNumLoadedDrives(long n)
Change the number of the loaded drives of all the transporters to a new
value.
|
void |
addSumTimeEmptyDrives(double t)
Change the whole time of the empty drives of all the transporters to a
new value.
|
void |
addSumTimeLoadedDrives(double t)
Change the whole time of the loaded drives of all the transporters to a
new value.
|
boolean |
addTransporter(InternalTransporter t)
This method is used to add an internal transporter to the transporter
queue of this TransporterSystem.
|
double |
avgUsage()
Returns the average utilization of a transporter of this transporter
system.
|
Reporter |
createDefaultReporter()
Returns a Reporter to produce a report about this TransporterSystem.
|
InternalTransporter[] |
getAssignedTransporter(Crane c)
Returns all the at the moment idle transporters of a certain crane they
are assigned to.
|
InternalTransporter[] |
getFreeTransporter(int n)
Returns n idle transporters of this transporter system that have still no
crane that are assigned to.
|
Queue |
getJobs()
Returns the jobs queue of this transporter system.
|
java.lang.String |
getJobsQueueStrategy()
Returns the implemented queueing discipline of the underlying queue for
jobs as a String, so it can be displayed in the report.
|
double |
getSumDistanceEmptyDrives()
Returns the whole distance of the empty drives of all the transporters.
|
double |
getSumDistanceLoadedDrives()
Returns the whole distance of the loaded drives of all the transporters.
|
long |
getSumNumEmptyDrives()
Returns the number of the empty drives of all the transporters.
|
long |
getSumNumLoadedDrives()
Returns the number of the loaded drives of all the transporters.
|
double |
getSumTimeEmptyDrives()
Returns the whole time of the empty drives of all the transporters.
|
double |
getSumTimeLoadedDrives()
Returns the whole time of the loaded drives of all the transporters.
|
ProcessQueue |
getTransporter()
Returns the transporter queue of this transporter system.
|
java.lang.String |
getTransporterQueueStrategy()
Returns the implemented queueing discipline of the underlying queue for
transporters as a String, so it can be displayed in the report.
|
void |
reset()
Resets all statistical counters to their default values.
|
addObserver, averageLength, averageWaitTime, deleteObserver, getQueueLimit, length, maxLength, maxLengthAt, maxWaitTime, maxWaitTimeAt, minLength, minLengthAt, notifyObservers, setQueueImpWarning, stdDevLength, stdDevWaitTime, zeroWaitsgetCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic TransporterSystem(Model owner, java.lang.String name, int tSortOrder, int tQCapacity, int jSortOrder, int jQCapacity, boolean showInReport, boolean showInTrace)
owner - Model : The model this TransporterSystem is associated to.name - java.lang.String : The TransporterSystem'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
transporters can be enqueued. Zero (0) means unlimited
capacity.showInReport - boolean : Flag, if this TransporterSystem should produce a
report or not.showInTrace - boolean : Flag for trace to produce trace messages.public Reporter createDefaultReporter()
public boolean addJob(Job j)
t - Job: The Job that me be enqueued.public boolean addTransporter(InternalTransporter t)
t - Job: The InternalTransporter that must be
enqueued.public void reset()
reset in class QueueBasedpublic long getSumNumEmptyDrives()
public void addSumNumEmptyDrives(long n)
n - long : The number of empty drives of this TransporterSystem
that must be added to the old value.public void addSumTimeEmptyDrives(double t)
t - double : The time of empty drives of this TransporterSystem
that must be added to the old value.public double getSumTimeEmptyDrives()
public void addSumDistanceEmptyDrives(double d)
d - double : The whole distance of the empty drives of this
TransporterSystem that must be added to the old value.public double getSumDistanceEmptyDrives()
public void addSumDistanceLoadedDrives(double d)
d - double : The whole distance of the loaded drives of this
TransporterSystem that must be added to the old value.public double getSumDistanceLoadedDrives()
public long getSumNumLoadedDrives()
public void addSumNumLoadedDrives(long n)
n - long : The number of loaded drives of this TransporterSystem
that must be added to the old value.public void addSumTimeLoadedDrives(double t)
t - double : The whole time of loaded drives of this
TransporterSystem that must be added to the old value.public double getSumTimeLoadedDrives()
public double avgUsage()
public ProcessQueue getTransporter()
ProcessQueue: The transporter queue.public Queue getJobs()
Queue: The jobs queue.public java.lang.String getTransporterQueueStrategy()
public java.lang.String getJobsQueueStrategy()
public InternalTransporter[] getFreeTransporter(int n)
InternalTransporter[] : The idle internal
transporters.public InternalTransporter[] getAssignedTransporter(Crane c)
c - Crane: The crane that these transportes are
assigned to.InternalTransporter[] : The idle internal
transporters of a certain crane.