Package jmri.jmrix.roco.z21
Class Z21HeartBeat
java.lang.Object
jmri.jmrix.roco.z21.Z21HeartBeat
- All Implemented Interfaces:
EventListener,AbstractMRListener,Z21Listener
Z21 specific class to send heartbeat messages to
the Z21. Heartbeat messages are only required if
no other messages are sent for a specific period
of time, so any outgoing message should restart
the timer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidmessage(Z21Message msg) Member function that will be invoked by a z21Interface implementation to forward a z21 message sent to the layout.voidMember function that will be invoked by a z21Interface implementation to forward a z21 message from the layout.
-
Constructor Details
-
Z21HeartBeat
-
-
Method Details
-
dispose
-
reply
Member function that will be invoked by a z21Interface implementation to forward a z21 message from the layout.- Specified by:
replyin interfaceZ21Listener- Parameters:
msg- The received z21 reply. 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 a z21Interface implementation to forward a z21 message sent to the layout. Normally, this function will do nothing.- Specified by:
messagein interfaceZ21Listener- Parameters:
msg- The received z21 message. Note that this same object may be presented to multiple users. It should not be modified here.
-