Class SerialTrafficController
- java.lang.Object
-
- jmri.jmrix.AbstractMRTrafficController
-
- jmri.jmrix.AbstractMRNodeTrafficController
-
- jmri.jmrix.ieee802154.IEEE802154TrafficController
-
- jmri.jmrix.ieee802154.serialdriver.SerialTrafficController
-
- All Implemented Interfaces:
IEEE802154Interface
public class SerialTrafficController extends IEEE802154TrafficController
Traffic Controller interface for communicating with IEEE 802.15.4 devices directly using IEEE 802.15.4 formated messages.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrix.AbstractMRTrafficController
AbstractMRTrafficController.RcvNotifier, AbstractMRTrafficController.XmtNotifier
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.ieee802154.IEEE802154TrafficController
logDebug
-
Fields inherited from class jmri.jmrix.AbstractMRNodeTrafficController
curSerialNodeIndex, maxNode, minNode, nodeArray, numNodes
-
Fields inherited from class jmri.jmrix.AbstractMRTrafficController
allowUnexpectedReply, AUTORETRYSTATE, cmdListeners, connectionError, controller, flushReceiveChars, IDLESTATE, istream, listenerQueue, maxRcvExceptionCount, mCurrentMode, mCurrentState, mLastSender, msgQueue, mWaitBeforePoll, NORMALMODE, NOTIFIEDSTATE, OKSENDMSGSTATE, ostream, POLLSTATE, PROGRAMINGMODE, rcvException, rcvThread, replyInDispatch, threadStopRequest, timeoutFlag, timeouts, WAITMSGREPLYSTATE, WAITREPLYINNORMMODESTATE, WAITREPLYINPROGMODESTATE, waitTimePoll, xmtException, xmtRunnable, xmtThread
-
-
Constructor Summary
Constructors Constructor Description SerialTrafficController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IEEE802154Message
getIEEE802154Message(int length)
Get a message of a specific length for filling in.IEEE802154Node
newNode()
Build a new IEEE802154 Node.protected AbstractMRReply
newReply()
This is a default, null implementation, which must be overridden in an adapter-specific subclass.-
Methods inherited from class jmri.jmrix.ieee802154.IEEE802154TrafficController
addIEEE802154Listener, addTrailerToOutput, deleteNode, endOfMessage, enterNormalMode, enterProgMode, enterProgModeDelayTime, forwardMessage, forwardReply, forwardToPort, getAdapterMemo, getNodeFromAddress, getNodeFromAddress, getNodeFromAddress, pollMessage, pollReplyHandler, removeIEEE802154Listener, sendIEEE802154Message, setAdapterMemo, waitForStartOfReply
-
Methods inherited from class jmri.jmrix.AbstractMRNodeTrafficController
deleteNode, getMustInit, getNode, getNodeFromAddress, getNumNodes, init, registerNode, setMustInit, setMustInit
-
Methods inherited from class jmri.jmrix.AbstractMRTrafficController
addConsoleListener, addHeaderToOutput, addListener, canReceive, connectionWarn, connectPort, disconnectPort, distributeReply, getLastSender, getPortName, getSynchronizeRx, handleOneIncomingReply, handleTimeout, hasTimeouts, lengthOfByteStream, loadChars, newRcvNotifier, notifyMessage, notifyReply, portReadyToSend, portWarn, portWarnTCP, programmerIdle, readByteProtected, receiveLoop, recovery, removeListener, reportReceiveLoopException, resetTimeout, sendMessage, setAllowUnexpectedReply, setSynchronizeRx, status, terminate, terminateThreads, transmitLoop, transmitWait, unexpectedReplyStateError, warnOnTimeout
-
-
-
-
Constructor Detail
-
SerialTrafficController
public SerialTrafficController()
-
-
Method Detail
-
getIEEE802154Message
public IEEE802154Message getIEEE802154Message(int length)
Get a message of a specific length for filling in.This is a default, null implementation, which must be overridden in an adapter-specific subclass.
- Overrides:
getIEEE802154Message
in classIEEE802154TrafficController
- Parameters:
length
- length for new message- Returns:
- null since this method should be over-ridden
-
newReply
protected AbstractMRReply newReply()
This is a default, null implementation, which must be overridden in an adapter-specific subclass.
- Specified by:
newReply
in classAbstractMRTrafficController
-
newNode
public IEEE802154Node newNode()
Description copied from class:IEEE802154TrafficController
Build a new IEEE802154 Node. Must be implemented by derived classes- Specified by:
newNode
in classIEEE802154TrafficController
- Returns:
- new IEEE802154Node.
-
-