Interface PerceivedGtu.Signals
- All Known Implementing Classes:
PerceivedGtu.Signals.Record
- Enclosing interface:
- PerceivedGtu
public static interface PerceivedGtu.Signals
Signal information.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordRecord storing signals information. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the indicator status.booleanReturns whether the braking lights are on.default booleanReturns indicator status.static PerceivedGtu.Signalsof(LaneBasedGtu gtu) Wraps a GTU and returns its signals.static PerceivedGtu.Signalsof(LaneBasedGtu gtu, Duration time) Wraps a GTU and returns its signals.
-
Field Details
-
NONE
Instance with no signals.
-
-
Method Details
-
isIndicatorOn
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
Wraps a GTU and returns its signals.- Parameters:
gtu- GTUtime- simulation time of the signals- Returns:
- signals view of the GTU
-