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
    • getLaneChangeDirection

      default LateralDirectionality getLaneChangeDirection()
      Returns the lane change direction.
      Returns:
      lane change direction
    • getDeviation

      org.djunits.value.vdouble.scalar.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

      static PerceivedGtu.Maneuver of(LaneBasedGtu gtu, org.djunits.value.vdouble.scalar.Duration time)
      Wraps a GTU and returns its maneuver at given time.
      Parameters:
      gtu - GTU
      time - time of the maneuver
      Returns:
      maneuver view of the GTU