public abstract class Transporter extends SimProcess
lifeCycle() must be implemented by the
user in order to specify the behavior of the Transporter.SimProcess,
Transportation,
TransportJunction| Constructor and Description |
|---|
Transporter(Model owner,
java.lang.String name,
int capac,
boolean showInTrace)
Constructs a Transporter which will carry around goods in a manufacturing
system.
|
Transporter(Model owner,
java.lang.String name,
int minLoad,
int capac,
boolean showInTrace)
Constructs a Transporter which will carry around goods in a manufacturing
system.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCapacity()
Returns the capacity of this Transporter.
|
int |
getMinLoad()
Returns the minimum load of this Transporter.
|
abstract void |
lifeCycle()
Override this method in a subclass of Transporter to implement the
Transporters specific behaviour.
|
void |
setCapacity(int newCapacity)
Sets the capacity of this Transporter to a new value.
|
void |
setMinLoad(int newMinLoad)
Sets the minimum load of this Transporter 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 Transporter(Model owner, java.lang.String name, int minLoad, int capac, boolean showInTrace)
lifeCycle() method to specify its
behavior. A Transporter has a capacity (maximum number of goods which can
be transported) and a mimimum load ( a minimum number of goods it will
carry). Both must not be zero or negative. Their default value is one.owner - desmoj.Model : The model this Transporter is associated to.name - java.lang.String : The name of this Transporter.minLoad - int : The minimum number of goods this Transporter will carry
around.capac - int : The maximum number of goods this Transporter can carry
around.showInTrace - boolean : Flag, if this Transporter should produce a trace
output or not.public Transporter(Model owner, java.lang.String name, int capac, boolean showInTrace)
lifeCycle() method to specify its
behavior. A Transporter has a capacity (maximum number of goods which can
be transported) and a mimimum load (a minimum number of goods it will
carry). Use this constructor to construct a Transporter with a specified
capacity and a minimum load of one.owner - desmoj.Model : The model this Transporter is associated to.name - java.lang.String : The name of this Transporter.capac - int : The maximum number of goods this Transporter can carry
around.showInTrace - boolean : Flag, if this Transporter should produce a trace
output or not.public int getCapacity()
public int getMinLoad()
public abstract void lifeCycle()
throws SuspendExecution
TransportJunction for goods
to carry around, like TransportJunctionXY.cooperate(transportation);SimProcess es (as slaves)
in some process cooperation is described in that special
cooperation method of the class
Transportation.lifeCycle in class SimProcessSuspendExecutionpublic void setCapacity(int newCapacity)
newCapacity - int : The new capacity of this Transporter.public void setMinLoad(int newMinLoad)
newMinLoad - int : The new minimum load of this Transporter.