Package jmri.jmrix.rps
Class Distributor
java.lang.Object
jmri.jmrix.rps.Distributor
Distributes Readings and the Measurements calculated from them.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classForward the Measurement from the Swing thread.(package private) static classForward the Reading from the Swing thread. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRequest being informed when a new Measurement is available.voidRequest being informed when a new Reading is available.static Distributorinstance()voidRequest to no longer be informed when new Measurements arrive.voidRequest to no longer be informed when new Readings arrive.voidInvoked when a new Measurement is created.voidInvoked when a new Reading is created.
-
Constructor Details
-
Distributor
public Distributor()
-
-
Method Details
-
addReadingListener
Request being informed when a new Reading is available.- Parameters:
l- the reading listener to add.
-
removeReadingListener
Request to no longer be informed when new Readings arrive.- Parameters:
l- the reading listener to remove.
-
submitReading
Invoked when a new Reading is created.- Parameters:
s- the reading.
-
addMeasurementListener
Request being informed when a new Measurement is available.- Parameters:
l- the listener to add.
-
removeMeasurementListener
Request to no longer be informed when new Measurements arrive.- Parameters:
l- the listener to remove.
-
submitMeasurement
Invoked when a new Measurement is created.- Parameters:
s- the measurement.
-
instance
-