Class StandaloneTrafficController
java.lang.Object
jmri.jmrix.AbstractMRTrafficController
jmri.jmrix.rfid.RfidTrafficController
jmri.jmrix.rfid.generic.standalone.StandaloneTrafficController
- All Implemented Interfaces:
RfidInterface
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.
- Since:
- 2.11.4
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrix.AbstractMRTrafficController
AbstractMRTrafficController.RcvNotifier, AbstractMRTrafficController.XmtNotifier -
Field Summary
FieldsFields inherited from class jmri.jmrix.rfid.RfidTrafficController
adapterMemo, logDebugFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanThis is a default, null implementation, which must be overridden in an adapter-specific subclass.protected voidforwardToPort(AbstractMRMessage m, AbstractMRListener reply) Actually transmit the next message to the port.getRange()getRfidMessage(int length) Get a message of a specific length for filling in.protected AbstractMRReplynewReply()This is a default, null implementation, which must be overridden in an adapter-specific subclass.voidMethods inherited from class jmri.jmrix.rfid.RfidTrafficController
addRfidListener, enterNormalMode, enterProgMode, forwardMessage, forwardReply, getAdapterMemo, getReporterManager, getSensorManager, pollMessage, pollReplyHandler, removeRfidListener, sendRfidMessage, setAdapterMemo, setReporterManager, setSensorManagerMethods inherited from class jmri.jmrix.AbstractMRTrafficController
addConsoleListener, addHeaderToOutput, addListener, addTrailerToOutput, canReceive, connectionWarn, connectPort, disconnectPort, distributeReply, enterProgModeDelayTime, 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, waitForStartOfReply, warnOnTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.jmrix.rfid.RfidInterface
status
-
Field Details
-
sendInterlock
boolean sendInterlock
-
-
Constructor Details
-
StandaloneTrafficController
-
-
Method Details
-
sendInitString
- Specified by:
sendInitStringin classRfidTrafficController
-
forwardToPort
Description copied from class:AbstractMRTrafficControllerActually transmit the next message to the port.- Overrides:
forwardToPortin classRfidTrafficController- Parameters:
m- the message to sendreply- the Listener sending the message, often provided as 'this'- See Also:
-
getRfidMessage
Description copied from class:RfidTrafficControllerGet 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:
getRfidMessagein classRfidTrafficController- Parameters:
length- message length.- Returns:
- the RfidMessage.
-
newReply
Description copied from class:RfidTrafficControllerThis is a default, null implementation, which must be overridden in an adapter-specific subclass.
- Overrides:
newReplyin classRfidTrafficController
-
getRange
- Overrides:
getRangein classRfidTrafficController
-
endOfMessage
Description copied from class:RfidTrafficControllerThis is a default, null implementation, which must be overridden in an adapter-specific subclass.
- Overrides:
endOfMessagein classRfidTrafficController
-