Package jmri.jmrix.lenz
Class XNetTimeSlotListener
java.lang.Object
jmri.jmrix.lenz.XNetTimeSlotListener
- All Implemented Interfaces:
EventListener
,AbstractMRListener
,XNetListener
public class XNetTimeSlotListener extends Object implements XNetListener
The XNetTimeSlotListener listens for two messages from the computer interface:
- "Command Station No Longer Providing a timeslot for communications" (01 05 04)
- "Command Station is providing a timeslot for communications again." (01 07 06)
when the first message is received, the associated port controller's setTimeSlot methodis called with a "false" parameter. When the second is true, it is called with a "true paramter.
-
Constructor Summary
Constructors Constructor Description XNetTimeSlotListener(XNetPortController p)
-
Method Summary
Modifier and Type Method Description void
message(XNetMessage msg)
Member function that will be invoked by an XNetInterface implementation to forward an XNet message sent to the layout.void
message(XNetReply msg)
Member function that will be invoked by an XNetInterface implementation to forward an XNet message from the layout.void
notifyTimeout(XNetMessage msg)
Member function invoked by an XNetInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.
-
Constructor Details
-
Method Details
-
message
Member function that will be invoked by an XNetInterface implementation to forward an XNet message from the layout.- Specified by:
message
in interfaceXNetListener
- Parameters:
msg
- The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
message
Member function that will be invoked by an XNetInterface implementation to forward an XNet message sent to the layout. Normally, this function will do nothing.- Specified by:
message
in interfaceXNetListener
- Parameters:
msg
- The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
notifyTimeout
Member function invoked by an XNetInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.- Specified by:
notifyTimeout
in interfaceXNetListener
- Parameters:
msg
- message which has timed out.
-