public class MyTruck extends Condition<Truck>
HoldingArea is equal the
number of the lane of this condition. The condition is used by an internal
transporter to find the needed truck that it has to unload/load.Condition| Constructor and Description |
|---|
MyTruck(Model owner,
java.lang.String name,
Lane lane,
boolean showInTrace)
Constructs a MyTruck condition with all the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(Truck t)
Returns a boolean showing whether the number of the truck lane is equal
to the condition lane.
|
Lane |
getLane()
Returns the lane that must be checked with the truck lane.
|
void |
setLane(Lane l)
Sets the lane that must be checked with the truck lane .
|
getConstructArguments, hasPrimitiveArgumentscurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic MyTruck(Model owner, java.lang.String name, Lane lane, boolean showInTrace)
owner - desmoj.Model : The model this MyTruck condition belongs to.name - java.lang.String : The name of this MyTruck condition.lane - Lane : The lane of this MyTruck condition.showInTrace - boolean : Flag, if this MyTruck condition should produce a
trace output or not.public boolean check(Truck t)
public void setLane(Lane l)
l - Lane: The new lane for this condition .public Lane getLane()
Lane: The lane of this condition.