Class Engine

All Implemented Interfaces:

public class Engine
extends Object
implements ReadingListener
Engine does basic computations of RPS system.

Holds all the alignment info. Receivers are indexed by their RPS receiver number in all cases.

Gets a reading from the Distributor and passes back a Measurement

Bound properties:

  • vSound - velocity of sound, in whatever units are in use

This class maintains a collection of "Transmitter" objects representing the RPS-equipped rolling stock (usually engines) on the layout. This is an extension to the common Roster, and every entry in this class's collection must be present in the Roster.