Interface PerceivedGtu.Maneuver

All Known Implementing Classes:
PerceivedGtu.Maneuver.Record
Enclosing interface:
PerceivedGtu

public static interface PerceivedGtu.Maneuver
Information on the maneuver.
  • Field Details

  • Method Details

    • isChangingLane

      default boolean isChangingLane(LateralDirectionality lat)
      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 - GTU
      time - time of the maneuver
      Returns:
      maneuver view of the GTU