Class EcosTrafficController

java.lang.Object
jmri.jmrix.AbstractMRTrafficController
jmri.jmrix.ecos.EcosTrafficController
All Implemented Interfaces:
EcosInterface

public class EcosTrafficController
extends AbstractMRTrafficController
implements EcosInterface
Converts Stream-based I/O to/from ECOS messages. The "EcosInterface" side sends/receives message objects.

The connection to a EcosPortController 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.