Package jmri.jmrix.dccpp.network
Class DCCppEthernetPacketizer
- java.lang.Object
- 
- jmri.jmrix.AbstractMRTrafficController
- 
- jmri.jmrix.dccpp.DCCppTrafficController
- 
- jmri.jmrix.dccpp.DCCppPacketizer
- 
- jmri.jmrix.dccpp.serial.SerialDCCppPacketizer
- 
- jmri.jmrix.dccpp.network.DCCppEthernetPacketizer
 
 
 
 
 
- 
- All Implemented Interfaces:
- DCCppInterface
 
 public class DCCppEthernetPacketizer extends SerialDCCppPacketizer An extension of the DCCppPacketizer to handle the device specific requirements of the DCC++ Ethernet.In particular, DCCppEthernetPacketizer counts the number of commands received. Based on LIUSBEthernetXnetPacketizer 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jmri.jmrix.AbstractMRTrafficControllerAbstractMRTrafficController.RcvNotifier, AbstractMRTrafficController.XmtNotifier
 
- 
 - 
Field Summary- 
Fields inherited from class jmri.jmrix.dccpp.DCCppTrafficControlleranyReceived, mListenerMasks, startUpDelay
 - 
Fields inherited from class jmri.jmrix.AbstractMRTrafficControllerallowUnexpectedReply, 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
 - 
Fields inherited from interface jmri.jmrix.dccpp.DCCppInterfaceALL, COMMINFO, CONSIST, CS_INFO, FEEDBACK, INTERFACE, PROGRAMMING, THROTTLE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DCCppEthernetPacketizer(DCCppCommandStation pCommandStation)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidforwardToPort(AbstractMRMessage m, AbstractMRListener reply)Actually transmits the next message to the port- 
Methods inherited from class jmri.jmrix.dccpp.serial.SerialDCCppPacketizerclearRefreshQueue, getQueueLength, isActiveRefresh, lengthOfByteStream, sendDCCppMessage, setActiveRefresh
 - 
Methods inherited from class jmri.jmrix.dccpp.DCCppPacketizeraddHeaderToOutput, addTrailerToOutput, loadChars, portReadyToSend
 - 
Methods inherited from class jmri.jmrix.dccpp.DCCppTrafficControlleraddDCCppListener, endOfMessage, enterNormalMode, enterProgMode, forwardMessage, forwardReply, getCommandStation, getSystemConnectionMemo, getTurnoutReplyCache, handleTimeout, newReply, pollMessage, pollReplyHandler, programmerIdle, removeDCCppListener, sendHighPriorityDCCppMessage, setSystemConnectionMemo, transmitLoop
 - 
Methods inherited from class jmri.jmrix.AbstractMRTrafficControlleraddConsoleListener, addListener, canReceive, connectionWarn, connectPort, disconnectPort, distributeReply, enterProgModeDelayTime, getLastSender, getPortName, getSynchronizeRx, handleOneIncomingReply, hasTimeouts, newRcvNotifier, notifyMessage, notifyReply, portWarn, portWarnTCP, readByteProtected, receiveLoop, recovery, removeListener, reportReceiveLoopException, resetTimeout, sendMessage, setAllowUnexpectedReply, setSynchronizeRx, status, terminate, terminateThreads, transmitWait, unexpectedReplyStateError, waitForStartOfReply, warnOnTimeout
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jmri.jmrix.dccpp.DCCppInterfacestatus
 
- 
 
- 
- 
- 
Constructor Detail- 
DCCppEthernetPacketizerpublic DCCppEthernetPacketizer(DCCppCommandStation pCommandStation) 
 
- 
 - 
Method Detail- 
forwardToPortprotected void forwardToPort(AbstractMRMessage m, AbstractMRListener reply) Actually transmits the next message to the port- Overrides:
- forwardToPortin class- AbstractMRTrafficController
- Parameters:
- m- the message to send
- reply- the Listener sending the message, often provided as 'this'
- See Also:
- AbstractMRTrafficController.sendMessage(AbstractMRMessage, AbstractMRListener)
 
 
- 
 
-