Interface PerceivedGtu.Signals

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

public static interface PerceivedGtu.Signals
Signal information.
  • Field Details

  • Method Details

    • isIndicatorOn

      default boolean isIndicatorOn(LateralDirectionality lat)
      Returns indicator status.
      Parameters:
      lat - direction of indicator.
      Returns:
      indicator status
      Throws:
      IllegalArgumentException - when the direction is not LEFT or RIGHT
    • getTurnIndicatorStatus

      TurnIndicatorStatus getTurnIndicatorStatus()
      Returns the indicator status.
      Returns:
      the indicator status
    • isBrakingLightsOn

      boolean isBrakingLightsOn()
      Returns whether the braking lights are on.
      Returns:
      whether the braking lights are on
    • of

      Wraps a GTU and returns its signals.
      Parameters:
      gtu - GTU
      Returns:
      signals view of the GTU
    • of

      static PerceivedGtu.Signals of(LaneBasedGtu gtu, Duration time)
      Wraps a GTU and returns its signals.
      Parameters:
      gtu - GTU
      time - simulation time of the signals
      Returns:
      signals view of the GTU