rp1.rossum
Class RsProtocol
java.lang.Object
rp1.rossum.RsProtocol
- All Implemented Interfaces:
- RsLogInterface
- Direct Known Subclasses:
- RsClient, RsConnection
public class RsProtocol
- extends java.lang.Object
- implements RsLogInterface
The base class for both RsClient and RsConnection, defines
most of the protocol elements for RP1 communications.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RsProtocol
public RsProtocol()
setSocket
public void setSocket(java.net.Socket socketRef)
throws java.io.IOException
- Throws:
java.io.IOException
setInputOutputStreams
public void setInputOutputStreams(java.io.InputStream input,
java.io.OutputStream output)
- This method is used to set input and output by the simulator when launching
a dynamically loaded client (see RP1 Users Guide).
isInputSet
public boolean isInputSet()
isOutputSet
public boolean isOutputSet()
isLoggerSet
public boolean isLoggerSet()
setProtocolShutdownHandler
public void setProtocolShutdownHandler(RsProtocolShutdownHandler reference)
setLogger
public void setLogger(RsLogInterface loggerReference)
log
public void log(java.lang.String message)
- Specified by:
log
in interface RsLogInterface
verbose
public void verbose(java.lang.String message)
- Specified by:
verbose
in interface RsLogInterface
getVerbosity
public boolean getVerbosity()
- Specified by:
getVerbosity
in interface RsLogInterface
setVerbosity
public void setVerbosity(boolean level)
- Specified by:
setVerbosity
in interface RsLogInterface
logIt
public void logIt(java.lang.String level,
java.lang.String message)
- Specified by:
logIt
in interface RsLogInterface