|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractMRTrafficController
jmri.jmrix.AbstractMRNodeTrafficController
public abstract class AbstractMRNodeTrafficController
Abstract Traffic Controller base class for those implementations that track a set of nodes.
The nodes are descendents of AbstractNode.
Provides node management services, but no additional protocol.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.AbstractMRTrafficController |
|---|
AUTORETRYSTATE, controller, IDLESTATE, NORMALMODE, NOTIFIEDSTATE, OKSENDMSGSTATE, POLLSTATE, PROGRAMINGMODE, WAITMSGREPLYSTATE, WAITREPLYINNORMMODESTATE, WAITREPLYINPROGMODESTATE |
| Constructor Summary | |
|---|---|
AbstractMRNodeTrafficController()
Creates a new instance of AbstractMRNodeTrafficController |
|
| Method Summary | |
|---|---|
void |
deleteNode(int nodeAddress)
Public method to delete a Serial node by node address |
AbstractNode |
getNode(int index)
Public method to return the Serial node with a given index Note: To cycle through all nodes, begin with index=0, and increment your index at each call. |
AbstractNode |
getNodeFromAddress(int addr)
Public method to identify a SerialNode from its node address Note: 'addr' is the node address, numbered from 0. |
int |
getNumNodes()
Get the number of currently registered nodes |
void |
registerNode(AbstractNode node)
Public method to register a Serial node |
| Methods inherited from class jmri.jmrix.AbstractMRTrafficController |
|---|
connectPort, disconnectPort, getPortName, getSelfLock, handleOneIncomingReply, hasTimeouts, portReadyToSend, receiveLoop, status |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMRNodeTrafficController()
| Method Detail |
|---|
public int getNumNodes()
public void registerNode(AbstractNode node)
public AbstractNode getNode(int index)
public AbstractNode getNodeFromAddress(int addr)
public void deleteNode(int nodeAddress)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||