Package jmri.jmrix.marklin.simulation
Class MarklinSimTrafficController
- java.lang.Object
-
- jmri.jmrix.AbstractMRTrafficController
-
- jmri.jmrix.marklin.MarklinTrafficController
-
- jmri.jmrix.marklin.simulation.MarklinSimTrafficController
-
- All Implemented Interfaces:
CommandStation
,MarklinInterface
public class MarklinSimTrafficController extends MarklinTrafficController
Traffic Controller for Simulated Marklin connections.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrix.AbstractMRTrafficController
AbstractMRTrafficController.RcvNotifier, AbstractMRTrafficController.XmtNotifier
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.marklin.MarklinTrafficController
defaultUserName
-
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 MarklinSimTrafficController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
forwardMessage(AbstractMRListener client, AbstractMRMessage m)
Forward a MarklinMessage to all registered MarklinInterface listeners.protected void
forwardReply(AbstractMRListener client, AbstractMRReply r)
Forward a MarklinReply to all registered MarklinInterface listeners.void
sendMarklinMessage(MarklinMessage m, MarklinListener l)
Forward a preformatted message to the actual interface.-
Methods inherited from class jmri.jmrix.marklin.MarklinTrafficController
addMarklinListener, addPollMessage, canReceive, dispose, endOfMessage, enterNormalMode, enterProgMode, enterProgModeDelayTime, getPollQueueDisabled, getSystemPrefix, getUserName, newReply, pollMessage, pollReplyHandler, removeMarklinListener, removePollMessage, sendPacket, setAdapterMemo, setPollQueueDisabled
-
Methods inherited from class jmri.jmrix.AbstractMRTrafficController
addConsoleListener, addHeaderToOutput, addListener, addTrailerToOutput, connectionWarn, connectPort, disconnectPort, distributeReply, 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, terminate, 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.CommandStation
sendAccSignalDecoderPkt, sendAltAccSignalDecoderPkt
-
Methods inherited from interface jmri.jmrix.marklin.MarklinInterface
status
-
-
-
-
Constructor Detail
-
MarklinSimTrafficController
public MarklinSimTrafficController()
-
-
Method Detail
-
forwardMessage
protected void forwardMessage(AbstractMRListener client, AbstractMRMessage m)
Description copied from class:MarklinTrafficController
Forward a MarklinMessage to all registered MarklinInterface listeners.- Overrides:
forwardMessage
in classMarklinTrafficController
- Parameters:
client
- abstract listener.m
- message to forward.
-
forwardReply
protected void forwardReply(AbstractMRListener client, AbstractMRReply r)
Description copied from class:MarklinTrafficController
Forward a MarklinReply to all registered MarklinInterface listeners.- Overrides:
forwardReply
in classMarklinTrafficController
-
sendMarklinMessage
public void sendMarklinMessage(MarklinMessage m, MarklinListener l)
Description copied from class:MarklinTrafficController
Forward a preformatted message to the actual interface. Send a message through the interface.- Specified by:
sendMarklinMessage
in interfaceMarklinInterface
- Overrides:
sendMarklinMessage
in classMarklinTrafficController
- Parameters:
m
- Message to be sent.l
- Listener to be notified of reply.
-
-