Class MarklinTrafficController

java.lang.Object
jmri.jmrix.AbstractMRTrafficController
jmri.jmrix.marklin.MarklinTrafficController
All Implemented Interfaces:
CommandStation, MarklinInterface

public class MarklinTrafficController
extends AbstractMRTrafficController
implements MarklinInterface, CommandStation
Converts Stream-based I/O to/from Marklin CS2 messages. The "MarklinInterface" side sends/receives message objects.

The connection to a MarklinPortController is via a pair of UDP 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. Based on work by Bob Jacobsen