Class QsiTrafficController

java.lang.Object
jmri.jmrix.qsi.QsiTrafficController
All Implemented Interfaces:
Runnable, QsiInterface

public class QsiTrafficController extends Object implements QsiInterface, Runnable
Converts Stream-based I/O to/from QSI messages. The "QsiInterface" side sends/receives message objects. The connection to a QsiPortController is via a pair of *Streams, which then carry sequences of characters for transmission. Note that this processing is handled in an independent thread.

Messages to and from the programmer are in a packet format. In both directions, every message starts with 'S' and ends with 'E'. These are handled automatically, and are not included in the QsiMessage and QsiReply content.