public class Job extends Entity
InternalTransporter
has to do in a container terminal. It has a certain origin (the place the
internal transporter has to drive to to get/leave the containers(goods) and
destination (the place the internal transporter has to drive to to leave/get
the containers(goods). It has also a certain typ: import or export. Job is
derived from Entity.Entity| Constructor and Description |
|---|
Job(Model owner,
java.lang.String name,
int type,
ModelComponent origin,
ModelComponent destination,
boolean showInTrace)
Constructs a Job that must been done by an internal transporter.
|
| Modifier and Type | Method and Description |
|---|---|
ModelComponent |
getDestination()
Returns the destination of this job.
|
ModelComponent |
getOrigin()
Returns the origin of this job.
|
int |
getType()
Returns the type of this job: 1 or 0.
|
boolean |
isSelected()
Returns true if job has been already selected for an internal transporter
anf false otherwise.
|
void |
setDestination(ModelComponent d)
Sets the destination of this job.
|
void |
setOrigin(ModelComponent o)
Sets the origin of this job.
|
void |
setSelected(boolean b)
Sets the boolean value if the job' been already selected.
|
void |
setType(int t)
Sets the type of this job.
|
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, 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 Job(Model owner, java.lang.String name, int type, ModelComponent origin, ModelComponent destination, boolean showInTrace)
owner - desmoj.Model : The model this Job is associated to.name - java.lang.String : The name of this Job.typ - int : The typ of this Job: 1 or 0.origin - ModelComponent: The origin of this Jobdestination - ModelComponent: The destination of this JobshowInTrace - boolean : Flag, if this Job should produce a trace output or
not.public void setOrigin(ModelComponent o)
o - ModelComponent: The new origin of this Job.public ModelComponent getOrigin()
ModelComponent: The origin of this job.public void setDestination(ModelComponent d)
d - ModelComponent: The new destination of this
Job.public ModelComponent getDestination()
ModelComponent: The destination of this job.public void setType(int t)
i - int : The new type of this Job.public int getType()
public boolean isSelected()
public void setSelected(boolean b)
b - boolean : The new flag if the job' been already selected.