Interface PerceivedGtu.Maneuver
- All Known Implementing Classes:
PerceivedGtu.Maneuver.Record
- Enclosing interface:
- PerceivedGtu
public static interface PerceivedGtu.Maneuver
Information on the maneuver.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordRecord storing signals information. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the lateral deviation from the lane center line.default booleanReturns whether the GTU is changing either left or right.booleanReturns whether the GTU is changing lanes to the left.booleanReturns whether the GTU is changing lanes to the right.static PerceivedGtu.Maneuverof(LaneBasedGtu gtu) Wraps a GTU and returns its signals.static PerceivedGtu.Maneuverof(LaneBasedGtu gtu, Duration time) Wraps a GTU and returns its maneuver at given time.
-
Field Details
-
NONE
Instance with no signals.
-
-
Method Details
-
isChangingLane
Returns whether the GTU is changing either left or right.- Parameters:
lat- lateral lane change direction- Returns:
- whether the GTU is changing either left or right
- Throws:
IllegalArgumentException- when the direction is not LEFT or RIGHT
-
isChangingLeft
boolean isChangingLeft()Returns whether the GTU is changing lanes to the left.- Returns:
- whether the GTU is changing lanes to the left
-
isChangingRight
boolean isChangingRight()Returns whether the GTU is changing lanes to the right.- Returns:
- whether the GTU is changing lanes to the right
-
getDeviation
Length getDeviation()Returns the lateral deviation from the lane center line. Positive values are left, negative values are right.- Returns:
- lateral deviation from the lane center line
-
of
Wraps a GTU and returns its signals.- Parameters:
gtu- GTU- Returns:
- signals view of the GTU
-
of
Wraps a GTU and returns its maneuver at given time.- Parameters:
gtu- GTUtime- time of the maneuver- Returns:
- maneuver view of the GTU
-