Package jmri.jmrix.can.cbus
Interface CbusEventInterface
- All Known Implementing Classes:
CbusLight,CbusSensor,CbusTurnout
public interface CbusEventInterface
Interface for CBUS Sensors, Turnouts and Lights to report CBUS Events.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CanMessageCheck if CanMessage is an event.Get event for primary Bean Off Action.Get event for primary Bean On Action.
-
Method Details
-
getBeanOnMessage
Get event for primary Bean On Action. e.g. without inversion, Light On.- Returns:
- Event for the Action, may be null
-
getBeanOffMessage
Get event for primary Bean Off Action. e.g. without Inversion Light Off.- Returns:
- Event for the Action, may be null
-
checkEvent
Check if CanMessage is an event.- Parameters:
m- CAN Frame to test.- Returns:
- Passed CanMessage if event, else null.
-