jmri.jmrix.rfid.merg.concentrator
Class SpecificTrafficController

java.lang.Object
  extended by jmri.jmrix.AbstractMRTrafficController
      extended by jmri.jmrix.rfid.RfidTrafficController
          extended by jmri.jmrix.rfid.merg.concentrator.SpecificTrafficController
All Implemented Interfaces:
RfidInterface

public class SpecificTrafficController
extends RfidTrafficController

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
(package private)  boolean sendInterlock
           
 
Fields inherited from class jmri.jmrix.rfid.RfidTrafficController
logDebug
 
Fields inherited from class jmri.jmrix.AbstractMRTrafficController
allowUnexpectedReply, AUTORETRYSTATE, cmdListeners, controller, flushReceiveChars, IDLESTATE, istream, maxRcvExceptionCount, mCurrentMode, mCurrentState, mLastSender, mWaitBeforePoll, NORMALMODE, NOTIFIEDSTATE, OKSENDMSGSTATE, ostream, POLLSTATE, PROGRAMINGMODE, rcvException, replyInDispatch, WAITMSGREPLYSTATE, WAITREPLYINNORMMODESTATE, WAITREPLYINPROGMODESTATE, waitTimePoll, xmtException, xmtRunnable
 
Constructor Summary
SpecificTrafficController(RfidSystemConnectionMemo memo, String range)
           
 
Method Summary
protected  boolean endOfMessage(AbstractMRReply msg)
           This is a default, null implementation, which must be overridden in an adapter-specific subclass.
protected  void forwardToPort(AbstractMRMessage m, AbstractMRListener reply)
          Actually transmits the next message to the port
 String getRange()
           
 RfidMessage getRfidMessage(int length)
          Get a message of a specific length for filling in.
protected  AbstractMRReply newReply()
           This is a default, null implementation, which must be overridden in an adapter-specific subclass.
 
Methods inherited from class jmri.jmrix.rfid.RfidTrafficController
addRfidListener, enterNormalMode, enterProgMode, forwardMessage, forwardReply, getReporterManager, getSensorManager, pollMessage, pollReplyHandler, removeRfidListener, sendRfidMessage, setAdapterMemo, setInstance, setReporterManager, setSensorManager
 
Methods inherited from class jmri.jmrix.AbstractMRTrafficController
addHeaderToOutput, addListener, addTrailerToOutput, canReceive, connectionWarn, connectPort, disconnectPort, enterProgModeDelayTime, finalize, getLastSender, getPortName, getSelfLock, handleOneIncomingReply, handleTimeout, hasTimeouts, lengthOfByteStream, loadChars, newRcvNotifier, notifyMessage, notifyReply, portReadyToSend, portWarn, portWarnTCP, programmerIdle, readByteProtected, receiveLoop, removeListener, reportReceiveLoopException, resetTimeout, sendMessage, setAllowUnexpectedReply, status, terminate, transmitWait, waitForStartOfReply
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.jmrix.rfid.RfidInterface
status
 

Field Detail

sendInterlock

boolean sendInterlock
Constructor Detail

SpecificTrafficController

public SpecificTrafficController(RfidSystemConnectionMemo memo,
                                 String range)
Method Detail

getRfidMessage

public RfidMessage getRfidMessage(int length)
Description copied from class: RfidTrafficController
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:
getRfidMessage in class RfidTrafficController

forwardToPort

protected void forwardToPort(AbstractMRMessage m,
                             AbstractMRListener reply)
Description copied from class: AbstractMRTrafficController
Actually transmits the next message to the port

Overrides:
forwardToPort in class RfidTrafficController

newReply

protected AbstractMRReply newReply()
Description copied from class: RfidTrafficController

This is a default, null implementation, which must be overridden in an adapter-specific subclass.

Overrides:
newReply in class RfidTrafficController

getRange

public String getRange()
Overrides:
getRange in class RfidTrafficController

endOfMessage

protected boolean endOfMessage(AbstractMRReply msg)
Description copied from class: RfidTrafficController

This is a default, null implementation, which must be overridden in an adapter-specific subclass.

Overrides:
endOfMessage in class RfidTrafficController


Copyright © 1997-2013 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads