public class IsJobForTransporter extends Condition<Job>
FixedVCtoCBAssignment_Strategy
to check if there'is a job for
a VC that is assigned a certain Crane to.FixedVCtoCBAssignment_Strategy
,
TransportStrategy
Constructor and Description |
---|
IsJobForTransporter(Model owner,
java.lang.String name,
boolean showInTrace)
Constructs a IsJobForTransporter condition with all the given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
check(Job j)
Returns a boolean showing whether the job for the VC has as the origin or
destination the Crane which that VC is assigned to.
|
Crane |
getCrane()
Returns the crane (containerbridge) which the VC that must be checked is
assigned to.
|
void |
setCrane(Crane c)
Sets the crane that the VC that must be checked is assigned to.
|
getConstructArguments, hasPrimitiveArguments
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 IsJobForTransporter(Model owner, java.lang.String name, boolean showInTrace)
owner
- desmoj.Model : The model this IsJobForTransporter condition
belongs to.name
- java.lang.String : The name of this IsJobForTransporter
condition.showInTrace
- boolean : Flag, if this IsJobForTransporter condition should
produce a trace output or not.public boolean check(Job j)
public Crane getCrane()
Crane
: The assigned crane of the VC.public void setCrane(Crane c)
c
- Crane
: The assigned crane of the VC.