Package jmri.jmrix.easydcc.simulator
Class EasyDccSimulatorTrafficController
- java.lang.Object
-
- jmri.jmrix.AbstractMRTrafficController
-
- jmri.jmrix.easydcc.EasyDccTrafficController
-
- jmri.jmrix.easydcc.simulator.EasyDccSimulatorTrafficController
-
- All Implemented Interfaces:
EasyDccInterface
public class EasyDccSimulatorTrafficController extends EasyDccTrafficController
Converts Stream-based I/O to/from EasyDcc messages. The "EasyDccInterface" side sends/receives message objects.The connection to a EasyDccPortController 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 handles the state transitions, based on the necessary state in each message.
Migrated for multiple connections, multi char connection prefix and Simulator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrix.AbstractMRTrafficController
AbstractMRTrafficController.RcvNotifier, AbstractMRTrafficController.XmtNotifier
-
-
Field Summary
-
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 EasyDccSimulatorTrafficController(EasyDccSystemConnectionMemo adaptermemo)
Ctor
-
Method Summary
-
Methods inherited from class jmri.jmrix.easydcc.EasyDccTrafficController
addEasyDccListener, endOfMessage, enterNormalMode, enterProgMode, forwardMessage, forwardReply, getSystemConnectionMemo, newReply, pollMessage, pollReplyHandler, removeEasyDccListener, sendEasyDccMessage, setSensorManager, setSystemConnectionMemo, terminate
-
Methods inherited from class jmri.jmrix.AbstractMRTrafficController
addConsoleListener, addHeaderToOutput, addListener, addTrailerToOutput, canReceive, connectionWarn, connectPort, disconnectPort, distributeReply, enterProgModeDelayTime, forwardToPort, 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, terminateThreads, transmitLoop, transmitWait, unexpectedReplyStateError, waitForStartOfReply, warnOnTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.easydcc.EasyDccInterface
status
-
-
-
-
Constructor Detail
-
EasyDccSimulatorTrafficController
public EasyDccSimulatorTrafficController(EasyDccSystemConnectionMemo adaptermemo)
Ctor- Parameters:
adaptermemo
- the associated SystemConnectionMemo
-
-