jmri.jmrix.can
Class TrafficController

java.lang.Object
  extended by jmri.jmrix.AbstractMRTrafficController
      extended by jmri.jmrix.can.AbstractCanTrafficController
          extended by jmri.jmrix.can.TrafficController
All Implemented Interfaces:
CanInterface
Direct Known Subclasses:
GcTrafficController, LawicellTrafficController, LoopbackTrafficController

public abstract class TrafficController
extends AbstractCanTrafficController

Traffic controller for CAN access.

Author:
Bob Jacobsen Copyright (C) 2008

Nested Class Summary
 
Nested classes/interfaces inherited from class jmri.jmrix.AbstractMRTrafficController
AbstractMRTrafficController.RcvNotifier, AbstractMRTrafficController.XmtNotifier
 
Field Summary
protected static int _canid
           
protected static TrafficController self
           
 
Fields inherited from class jmri.jmrix.AbstractMRTrafficController
allowUnexpectedReply, AUTORETRYSTATE, cmdListeners, controller, flushReceiveChars, IDLESTATE, istream, mCurrentMode, mCurrentState, mLastSender, mWaitBeforePoll, NORMALMODE, NOTIFIEDSTATE, OKSENDMSGSTATE, ostream, POLLSTATE, PROGRAMINGMODE, rcvException, replyInDispatch, WAITMSGREPLYSTATE, WAITREPLYINNORMMODESTATE, WAITREPLYINPROGMODESTATE, waitTimePoll, xmtException, xmtRunnable
 
Constructor Summary
TrafficController()
           
 
Method Summary
 int getCanid()
           
static TrafficController instance()
          static function returning the CanTrafficController instance to use.
protected  void setInstance()
           
 
Methods inherited from class jmri.jmrix.can.AbstractCanTrafficController
addCanListener, decodeFromHardware, encodeForHardware, enterNormalMode, enterProgMode, forwardToPort, handleOneIncomingReply, newMessage, pollMessage, pollReplyHandler, removeCanListener
 
Methods inherited from class jmri.jmrix.AbstractMRTrafficController
addHeaderToOutput, addListener, addTrailerToOutput, canReceive, connectionWarn, connectPort, disconnectPort, endOfMessage, enterProgModeDelayTime, finalize, forwardMessage, forwardReply, getLastSender, getPortName, getSelfLock, handleTimeout, hasTimeouts, lengthOfByteStream, loadChars, newRcvNotifier, newReply, 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.can.CanInterface
sendCanMessage, status
 

Field Detail

self

protected static TrafficController self

_canid

protected static int _canid
Constructor Detail

TrafficController

public TrafficController()
Method Detail

instance

public static TrafficController instance()
static function returning the CanTrafficController instance to use.

Returns:
The registered TrafficController instance for general use, which must have been initialized previously

setInstance

protected void setInstance()
Specified by:
setInstance in class AbstractMRTrafficController

getCanid

public int getCanid()


Copyright © 1997 - 2011 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