Package jmri.jmrix.can.cbus.node
Class CbusAllocateNodeNumber
- java.lang.Object
-
- jmri.jmrix.can.cbus.node.CbusAllocateNodeNumber
-
- All Implemented Interfaces:
java.util.EventListener
,AbstractMRListener
,CanListener
public class CbusAllocateNodeNumber extends java.lang.Object implements CanListener
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.TimerTask
sendSNNTask
-
Constructor Summary
Constructors Constructor Description CbusAllocateNodeNumber(CanSystemConnectionMemo memo, CbusNodeTableDataModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
message(CanMessage m)
If popup not open send a setup param request to try and catch nodes awaiting number allocation when an all node respond message is sent.void
reply(CanReply m)
Capture CBUS_RQNN, CBUS_PARAMS, CBUS_NNACK, CBUS_NAMEprotected void
setTimeout(int newVal)
Set the SNN timeout, for Testing purposes-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.can.CanListener
addTc, addTc, removeTc, removeTc
-
-
-
-
Field Detail
-
sendSNNTask
protected java.util.TimerTask sendSNNTask
-
-
Constructor Detail
-
CbusAllocateNodeNumber
public CbusAllocateNodeNumber(CanSystemConnectionMemo memo, CbusNodeTableDataModel model)
-
-
Method Detail
-
setTimeout
protected void setTimeout(int newVal)
Set the SNN timeout, for Testing purposes- Parameters:
newVal
- Timeout value in ms
-
message
public void message(CanMessage m)
If popup not open send a setup param request to try and catch nodes awaiting number allocation when an all node respond message is sent.- Specified by:
message
in interfaceCanListener
- Parameters:
m
- Outgoing CanMessage
-
reply
public void reply(CanReply m)
Capture CBUS_RQNN, CBUS_PARAMS, CBUS_NNACK, CBUS_NAME- Specified by:
reply
in interfaceCanListener
- Parameters:
m
- incoming CanReply
-
dispose
public void dispose()
-
-