|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.bachrus.SpeedoTrafficController
public class SpeedoTrafficController
Converts Stream-based I/O to/from speedo messages. The "SpeedoInterface" side sends/receives message objects. The connection to a SpeedoPortController is via a pair of *Streams, which then carry sequences of characters for transmission. Note that this processing is handled in an independent thread. Updated January 2010 for gnu io (RXTX) - Andrew Berridge. Comments tagged with "AJB" indicate changes or observations by me Removed Runnable implementation and methods for it
| Field Summary | |
|---|---|
protected Vector<SpeedoListener> |
cmdListeners
|
protected static SpeedoTrafficController |
self
|
| Constructor Summary | |
|---|---|
SpeedoTrafficController()
|
|
| Method Summary | |
|---|---|
void |
addSpeedoListener(SpeedoListener l)
|
void |
connectPort(SpeedoPortController p)
Make connection to existing PortController object. |
void |
disconnectPort(SpeedoPortController p)
Break connection to existing SpeedoPortController object. |
static SpeedoTrafficController |
instance()
static function returning the SpeedoTrafficController instance to use. |
protected void |
notifyReply(SpeedoReply r)
|
void |
removeSpeedoListener(SpeedoListener l)
|
void |
serialEvent(SerialPortEvent event)
serialEvent - respond to an event triggered by RXTX. |
boolean |
status()
Test operational status of interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Vector<SpeedoListener> cmdListeners
protected static volatile SpeedoTrafficController self
| Constructor Detail |
|---|
public SpeedoTrafficController()
| Method Detail |
|---|
public boolean status()
SpeedoInterface
status in interface SpeedoInterfacepublic void addSpeedoListener(SpeedoListener l)
addSpeedoListener in interface SpeedoInterfacepublic void removeSpeedoListener(SpeedoListener l)
removeSpeedoListener in interface SpeedoInterfaceprotected void notifyReply(SpeedoReply r)
public void connectPort(SpeedoPortController p)
public void disconnectPort(SpeedoPortController p)
public static SpeedoTrafficController instance()
public void serialEvent(SerialPortEvent event)
serialEvent in interface SerialPortEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||