Package jmri.jmrix.loconet
Class LnPredefinedMeters
- java.lang.Object
-
- jmri.jmrix.loconet.LnPredefinedMeters
-
- All Implemented Interfaces:
java.util.EventListener
,LocoNetListener
public class LnPredefinedMeters extends java.lang.Object implements LocoNetListener
Provide access to current and voltage meter from some LocoNet command stations
-
-
Constructor Summary
Constructors Constructor Description LnPredefinedMeters(LocoNetSystemConnectionMemo scm)
Create a LnPredefinedMeters object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
message(LocoNetMessage msg)
Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.void
requestUpdateFromLayout()
-
-
-
Constructor Detail
-
LnPredefinedMeters
public LnPredefinedMeters(LocoNetSystemConnectionMemo scm)
Create a LnPredefinedMeters object- Parameters:
scm
- connection memo
-
-
Method Detail
-
message
public void message(LocoNetMessage msg)
Description copied from interface:LocoNetListener
Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.- Specified by:
message
in 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
public void dispose()
-
requestUpdateFromLayout
public void requestUpdateFromLayout()
-
-