public static class LaneChangeUrgeGTUColorer.LaneChangeDistanceAndDirection extends Object
| Modifier and Type | Field and Description |
|---|---|
org.djunits.value.vdouble.scalar.Length.Rel |
distance
The distance available to complete the next required lane change.
|
Boolean |
left
The lateral direction of the next required lane change is left (if this field is true); right (if this field is
false); none (if this field is null)
|
| Constructor and Description |
|---|
LaneChangeDistanceAndDirection(org.djunits.value.vdouble.scalar.Length.Rel distance,
Boolean left)
Construct a new LaneChangeDistanceAndDirection object.
|
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.Length.Rel |
getDistance()
Retrieve the distance available to complete the next required lane change.
|
Boolean |
getLeft()
Retrieve the lateral direction of the next required lane change.
|
String |
toString() |
public final org.djunits.value.vdouble.scalar.Length.Rel distance
public final Boolean left
public LaneChangeDistanceAndDirection(org.djunits.value.vdouble.scalar.Length.Rel distance,
Boolean left)
distance - DoubleScalar.Abs<LengthUnit>; the distance available for performing a lane changeleft - Boolean; if true the lane change to perform is to the left; if false, the lane change to perform is to
the right; if null, no lane change is needed, or possiblepublic final org.djunits.value.vdouble.scalar.Length.Rel getDistance()
public final Boolean getLeft()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.