Constructor and Description |
---|
RouteStep(Diagram.Command command)
Construct a RouteStep for ELSE or END_IF command.
|
RouteStep(Diagram.Command command,
int streamCondition)
Construct a RouteStep with a command condition.
|
RouteStep(int x,
int y)
Construct a RouteStep that has a NO_OP command.
|
RouteStep(int x,
int y,
Diagram.Command command)
Construct a RouteStep with a command condition.
|
Modifier and Type | Method and Description |
---|---|
Diagram.Command |
getCommand()
Retrieve the command.
|
int |
getStreamCondition()
Retrieve the stream condition.
|
int |
getX()
Retrieve the X object.
|
int |
getY()
Retrieve the Y object.
|
String |
toString() |
public RouteStep(int x, int y)
x
- int; the X object at the end of this route stepy
- int; the Y object at the end of this route steppublic RouteStep(int x, int y, Diagram.Command command) throws org.opentrafficsim.road.network.lane.object.trafficlight.TrafficLightException
x
- int; the X object at the end of this route stepy
- int; the Y object at the end of this route stepcommand
- Command; a STOP_LINE or NO_OP commandorg.opentrafficsim.road.network.lane.object.trafficlight.TrafficLightException
- when an IF or ELSE_IF has an invalid streamCondition, or when an ELSE or END_IF has a
valid streamCOnditionpublic RouteStep(Diagram.Command command, int streamCondition) throws org.opentrafficsim.road.network.lane.object.trafficlight.TrafficLightException
command
- Command; an IF, ELSE, ENDIF, or ELSE_IF commandstreamCondition
- int; the stream that must exist for the condition to be trueorg.opentrafficsim.road.network.lane.object.trafficlight.TrafficLightException
- when an IF or ELSE_IF has an invalid streamCondition, or when an ELSE or END_IF has a
valid streamCOnditionpublic RouteStep(Diagram.Command command) throws org.opentrafficsim.road.network.lane.object.trafficlight.TrafficLightException
command
- Command; either Command.ELSE
or Command.END_IF
org.opentrafficsim.road.network.lane.object.trafficlight.TrafficLightException
- when the Command is not ELSE or END_IFpublic int getX()
public int getY()
public Diagram.Command getCommand()
public int getStreamCondition()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.