Package jmri.jmrix.can.cbus.simulator
Class CbusEventResponder
- java.lang.Object
-
- jmri.jmrix.can.cbus.node.CbusNodeCanListener
-
- jmri.jmrix.can.cbus.simulator.CbusSimCanListener
-
- jmri.jmrix.can.cbus.simulator.CbusEventResponder
-
- All Implemented Interfaces:
java.util.EventListener
,AbstractMRListener
,CanListener
public class CbusEventResponder extends CbusSimCanListener
Simulating event request responses.- Since:
- 4.15.2
- See Also:
CbusSimulator
-
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList<java.lang.String>
evModes
java.util.ArrayList<java.lang.String>
evModesTip
-
Fields inherited from class jmri.jmrix.can.cbus.simulator.CbusSimCanListener
send
-
Fields inherited from class jmri.jmrix.can.cbus.node.CbusNodeCanListener
memo
-
-
Constructor Summary
Constructors Constructor Description CbusEventResponder(CanSystemConnectionMemo memod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMode()
int
getNode()
void
setMode(int mode)
void
setNode(int node)
protected void
startProcessFrame(AbstractMessage m)
Method to be overridden by extending methods.-
Methods inherited from class jmri.jmrix.can.cbus.simulator.CbusSimCanListener
dispose, getDelay, getProcessIn, getProcessOut, getSendIn, getSendOut, message, reply, setDelay, setProcessIn, setProcessOut, setSendIn, setSendOut
-
Methods inherited from class jmri.jmrix.can.cbus.node.CbusNodeCanListener
setParamsFromSetup
-
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
-
evModes
public java.util.ArrayList<java.lang.String> evModes
-
evModesTip
public java.util.ArrayList<java.lang.String> evModesTip
-
-
Constructor Detail
-
CbusEventResponder
public CbusEventResponder(CanSystemConnectionMemo memod)
-
-
Method Detail
-
setMode
public void setMode(int mode)
-
getMode
public int getMode()
-
setNode
public void setNode(int node)
-
getNode
public int getNode()
-
startProcessFrame
protected void startProcessFrame(AbstractMessage m)
Description copied from class:CbusSimCanListener
Method to be overridden by extending methods.- Overrides:
startProcessFrame
in classCbusSimCanListener
- Parameters:
m
- CanFrame or CanReply to process
-
-