Package jmri.jmrix.can.cbus.simulator
Class CbusDummyCS
- java.lang.Object
-
- jmri.jmrix.can.cbus.node.CbusNodeCanListener
-
- jmri.jmrix.can.cbus.simulator.CbusSimCanListener
-
- jmri.jmrix.can.cbus.simulator.CbusDummyCS
-
- All Implemented Interfaces:
java.util.EventListener
,AbstractMRListener
,CanListener
public class CbusDummyCS extends CbusSimCanListener
Simulating a MERG CBUS Command Station. Can operate as stand-alone or managed via @CbusSimulator.- Since:
- 4.15.2
- See Also:
CbusSimulator
,CbusDummyCSSession
-
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList<java.lang.String>
csTypes
java.util.ArrayList<java.lang.String>
csTypesTip
protected static int
DEFAULT_CS_TIMEOUT
protected static int
DEFAULT_SESSION_START_SPDDIR
-
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 CbusDummyCS(CanSystemConnectionMemo sysmemo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
destroySession(CbusDummyCSSession session)
void
dispose()
Disconnects from networkint
getDummyType()
int
getNumberSessions()
boolean
getResponseRSTAT()
void
resetCS()
void
setDummyType(int type)
protected void
setEstop(java.lang.Boolean estop)
void
setPane(CsPane pane)
protected void
startProcessFrame(AbstractMessage m)
Method to be overridden by extending methods.-
Methods inherited from class jmri.jmrix.can.cbus.simulator.CbusSimCanListener
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
-
csTypes
public java.util.ArrayList<java.lang.String> csTypes
-
csTypesTip
public java.util.ArrayList<java.lang.String> csTypesTip
-
DEFAULT_CS_TIMEOUT
protected static int DEFAULT_CS_TIMEOUT
-
DEFAULT_SESSION_START_SPDDIR
protected static int DEFAULT_SESSION_START_SPDDIR
-
-
Constructor Detail
-
CbusDummyCS
public CbusDummyCS(CanSystemConnectionMemo sysmemo)
-
-
Method Detail
-
getNumberSessions
public int getNumberSessions()
-
resetCS
public void resetCS()
-
setDummyType
public void setDummyType(int type)
-
getDummyType
public int getDummyType()
-
getResponseRSTAT
public boolean getResponseRSTAT()
-
setEstop
protected void setEstop(java.lang.Boolean estop)
-
destroySession
protected void destroySession(CbusDummyCSSession session)
-
startProcessFrame
protected void startProcessFrame(AbstractMessage m)
Method to be overridden by extending methods.- Overrides:
startProcessFrame
in classCbusSimCanListener
- Parameters:
m
- CanFrame or CanReply to process
-
dispose
public void dispose()
Disconnects from network- Overrides:
dispose
in classCbusSimCanListener
-
-