Package jmri.jmrix.can.cbus
Class CbusPredefinedMeters
java.lang.Object
jmri.jmrix.can.cbus.CbusPredefinedMeters
- All Implemented Interfaces:
EventListener,Disposable,AbstractMRListener,CanListener
Provide access to current meter from a MERG CBUS Command Station
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Meter(package private) final Meter(package private) final MeterUpdateTask(package private) final Meter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Called when disposing of a disposable.voidOutgoing CAN Frames ignored Called when an outgoing message is sent to the CAN Network.voidListen for CAN Frames sent by Command Station 0 Typically sent every 4-5 seconds.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.jmrix.can.CanListener
addTc, addTc, removeTc, removeTc
-
Field Details
-
updateTask
-
currentMeter
-
currentMeterExtra
-
voltageMeter
-
-
Constructor Details
-
CbusPredefinedMeters
-
-
Method Details
-
reply
Listen for CAN Frames sent by Command Station 0 Typically sent every 4-5 seconds. Called when an incoming CanFrame is received from the CAN Network.- Specified by:
replyin interfaceCanListener- Parameters:
r- the CanReply being received.
-
message
Outgoing CAN Frames ignored Called when an outgoing message is sent to the CAN Network.- Specified by:
messagein interfaceCanListener- Parameters:
m- the CanMessage being sent.
-
dispose
Description copied from interface:DisposableCalled when disposing of a disposable.Note there are no assurances this method will not be called multiple times against a single instance of this Disposable. It is the responsibility of this Disposable to protect itself and the application from ensuring that calling this method multiple times has no unwanted side effects.
- Specified by:
disposein interfaceDisposable
-