public abstract class ExternalTransporter extends SimProcess
Ship
,Truck
, Train)that arrives in a
container terminal to deliver and/or pick up some containers (goods). It has
a certain number of import/export containers that must have loaded/unloaded
before it can leave a container terminal. The both numbers must be not
negative. ExternalTransporter is derived from SimProcess. Its
lifeCycle()
must be implemented by the user in order to
specify the behavior of the ExternalTransporter.SimProcess
Constructor and Description |
---|
ExternalTransporter(Model owner,
java.lang.String name,
long nImportGoods,
long nExportGoods,
boolean showInTrace)
Constructs an ExternalTransporter which arrives at a container terminal
to deliver and/or pick up some containers (goods).
|
Modifier and Type | Method and Description |
---|---|
long |
getNumberOfExportGoods()
Returns the number of export goods (containers) of this
ExternalTransporter.
|
long |
getNumberOfImportGoods()
Returns the number of import goods (containers) of this
ExternalTransporter.
|
void |
setNumberOfExportGoods(long n)
Sets the number of export goods (containers) of this ExternalTransporter
to a new value.
|
void |
setNumberOfImportGoods(long n)
Sets the number of import goods (containers) of this ExternalTransporter
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, lifeCycle, 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 ExternalTransporter(Model owner, java.lang.String name, long nImportGoods, long nExportGoods, boolean showInTrace)
lifeCycle()
method like
Ship
,Truck
or Train to specify its
behavior. An External Transporter has a number of import/export
containers that must have loaded/unloaded before it can leave a container
terminal. Both must not be negative. Their default value is one.owner
- desmoj.Model : The model this ExternalTransporter is
associated to.name
- java.lang.String : The name of this ExternalTransporter.nImportGoods
- long : The number of import goods this ExternalTransporter has
to bring /take to/from container terminal.nExportGoods
- long : The number of export goods this ExternalTransporter has
to take /bring from/to container terminal.showInTrace
- boolean : Flag, if this ExternaTransporter should produce a
trace output or not.public void setNumberOfImportGoods(long n)
n
- long : The new number of import goods of this
ExternalTransporter.public long getNumberOfImportGoods()
public void setNumberOfExportGoods(long n)
n
- long : The new number of export goods of this
ExternalTransporter.public long getNumberOfExportGoods()