Package jmri.jmrix.loconet
Class LnPredefinedMeters
java.lang.Object
jmri.jmrix.loconet.LnPredefinedMeters
- All Implemented Interfaces:
EventListener,Disposable,LocoNetListener
Provide access to current and voltage meter from some LocoNet command stations
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a LnPredefinedMeters object -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose of the instance.voidmessage(LocoNetMessage msg) Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.void
-
Constructor Details
-
LnPredefinedMeters
Create a LnPredefinedMeters object- Parameters:
scm- connection memo
-
-
Method Details
-
message
Description copied from interface:LocoNetListenerMember function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.- Specified by:
messagein interfaceLocoNetListener- Parameters:
msg- The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
dispose
Dispose of the instance. Removes TC Listener. Disposes initialization task and individual update tasks.- Specified by:
disposein interfaceDisposable
-
requestUpdateFromLayout
-