Class SprogTrafficController

java.lang.Object
jmri.jmrix.sprog.SprogTrafficController
All Implemented Interfaces:
Runnable, EventListener, SprogInterface, purejavacomm.SerialPortEventListener

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

Rewritten during 4.11.x series. Create a high priority thread for the tc to move everything off the swing thread. Use a blocking queue to handle asynchronous messages from multiple sources.