Package jmri.jmrix.lenz
Class XNetFeedbackMessageCache
java.lang.Object
jmri.jmrix.lenz.XNetFeedbackMessageCache
- All Implemented Interfaces:
EventListener,AbstractMRListener,XNetListener
Implement a feedback message cache for XpressNet sensors and turnouts.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidListen for the messages to the LI100/LI101.voidListen for turnouts, creating them as needed.voidnotifyTimeout(XNetMessage msg) Handle a timeout notification.voidProvide any cached state a sensor.voidrequestCachedStateFromLayout(XNetTurnout turnout)
-
Field Details
-
tc
-
-
Constructor Details
-
XNetFeedbackMessageCache
-
-
Method Details
-
requestCachedStateFromLayout
-
requestCachedStateFromLayout
Provide any cached state a sensor. Otherwise, call the sensor's requestUpdateFromLayout() method.- Parameters:
sensor- the XNetSensor object we are requesting data for
-
message
Listen for turnouts, creating them as needed.- Specified by:
messagein interfaceXNetListener- Parameters:
l- The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
message
Listen for the messages to the LI100/LI101.- Specified by:
messagein interfaceXNetListener- Parameters:
l- The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
notifyTimeout
Handle a timeout notification.- Specified by:
notifyTimeoutin interfaceXNetListener- Parameters:
msg- message which has timed out.
-