Package jmri.jmris.srcp
Class JmriSRCPServiceHandler
- java.lang.Object
-
- jmri.jmris.ServiceHandler
-
- jmri.jmris.srcp.JmriSRCPServiceHandler
-
public class JmriSRCPServiceHandler extends ServiceHandler
This class provides access to the service handlers for individual object types which can be passed to a parser visitor object. In addition to service handlers handling the connection's services, This class keeps track of connection details the parser visitor may be asked to return.
-
-
Constructor Summary
Constructors Constructor Description JmriSRCPServiceHandler(int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClientVersion()
boolean
getRunMode()
long
getSessionNumber()
boolean
isCommandMode()
void
setClientVersion(java.lang.String ver)
void
setCommandMode(boolean mode)
void
setRunMode()
-
Methods inherited from class jmri.jmris.ServiceHandler
getLightServer, getPowerServer, getProgrammerServer, getSensorServer, getThrottleServer, getTimeServer, getTurnoutServer, setLightServer, setPowerServer, setProgrammerServer, setSensorServer, setThrottleServer, setTimeServer, setTurnoutServer
-
-
-
-
Constructor Detail
-
JmriSRCPServiceHandler
public JmriSRCPServiceHandler(int port)
-
-
Method Detail
-
getSessionNumber
public long getSessionNumber()
-
getClientVersion
public java.lang.String getClientVersion()
-
setClientVersion
public void setClientVersion(java.lang.String ver)
-
setRunMode
public void setRunMode()
-
getRunMode
public boolean getRunMode()
-
isCommandMode
public boolean isCommandMode()
-
setCommandMode
public void setCommandMode(boolean mode)
-
-