Class MrcTrafficController

java.lang.Object
jmri.jmrix.mrc.MrcTrafficController
All Implemented Interfaces:
MrcInterface
Direct Known Subclasses:
MrcPacketizer

public abstract class MrcTrafficController
extends Object
implements MrcInterface
Converts Stream-based I/O to/from MRC messages. The "MrcInterface" side sends/receives message objects.

The connection to a MrcPortController is via a pair of *Streams, which then carry sequences of characters for transmission. Note that this processing is handled in an independent thread.

This handles the state transitions, based on the necessary state in each message.