|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractMRTrafficController
jmri.jmrix.powerline.SerialTrafficController
jmri.jmrix.powerline.insteon2412s.SpecificTrafficController
public class SpecificTrafficController
Converts Stream-based I/O to/from messages. The "SerialInterface" side sends/receives message objects.
The connection to a SerialPortController 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 maintains a list of nodes, but doesn't currently do anything with it.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jmri.jmrix.AbstractMRTrafficController |
|---|
AbstractMRTrafficController.RcvNotifier, AbstractMRTrafficController.XmtNotifier |
| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.powerline.SerialTrafficController |
|---|
logDebug |
| Constructor Summary | |
|---|---|
SpecificTrafficController(SerialSystemConnectionMemo memo)
|
|
| Method Summary | |
|---|---|
protected boolean |
endOfMessage(AbstractMRReply msg)
This is a default, null implementation, which must be overridden in an adapter-specific subclass. |
protected void |
forwardToPort(AbstractMRMessage m,
AbstractMRListener reply)
Actually transmits the next message to the port |
SerialMessage |
getSerialMessage(int length)
Get a message of a specific length for filling in. |
protected void |
loadChars(AbstractMRReply msg,
DataInputStream istream)
read a stream and pick packets out of it. |
protected AbstractMRReply |
newReply()
This is a default, null implementation, which must be overridden in an adapter-specific subclass. |
void |
sendInsteonSequence(InsteonSequence s,
SerialListener l)
Send a sequence of Insteon messages Makes them into the local messages and then queues in order |
void |
sendX10Sequence(X10Sequence s,
SerialListener l)
Send a sequence of X10 messages Makes them into the local messages and then queues in order |
| Methods inherited from class jmri.jmrix.powerline.SerialTrafficController |
|---|
addSerialListener, enterNormalMode, enterProgMode, enterProgModeDelayTime, forwardMessage, forwardReply, getAdapterMemo, getNumberOfIntensitySteps, getSensorManager, pollMessage, pollReplyHandler, removeSerialListener, sendSerialMessage, setAdapterMemo, setInstance, setSensorManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.jmrix.powerline.SerialInterface |
|---|
status |
| Constructor Detail |
|---|
public SpecificTrafficController(SerialSystemConnectionMemo memo)
| Method Detail |
|---|
public void sendX10Sequence(X10Sequence s,
SerialListener l)
Makes them into the local messages and then queues in order
sendX10Sequence in class SerialTrafficController
public void sendInsteonSequence(InsteonSequence s,
SerialListener l)
Makes them into the local messages and then queues in order
sendInsteonSequence in class SerialTrafficControllerpublic SerialMessage getSerialMessage(int length)
getSerialMessage in class SerialTrafficController
protected void forwardToPort(AbstractMRMessage m,
AbstractMRListener reply)
AbstractMRTrafficController
forwardToPort in class SerialTrafficControllerprotected AbstractMRReply newReply()
SerialTrafficControllerThis is a default, null implementation, which must be overridden in an adapter-specific subclass.
newReply in class SerialTrafficControllerprotected boolean endOfMessage(AbstractMRReply msg)
SerialTrafficControllerThis is a default, null implementation, which must be overridden in an adapter-specific subclass.
endOfMessage in class SerialTrafficController
protected void loadChars(AbstractMRReply msg,
DataInputStream istream)
throws IOException
loadChars in class AbstractMRTrafficControllermsg - message to fillistream - character source.
IOException - when presented by the input source.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||