public interface WrapperInterface extends java.io.Serializable, SecsEventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
void |
addMessageHandler(java.lang.Object theMessageHandler)
Add a message handler object.
|
void |
addMessageHandler(java.io.Serializable theMessageHandler)
Add a message handler object.
|
boolean |
connect()
Connected the session.
|
void |
disconnect()
Disconnected the session.
|
int |
getDeviceId()
Returns the current device id.
|
LoggerInterface |
getLogger()
Returns the current logger.
|
int |
getPort()
Returns the current TCP/IP port.
|
PortManager |
getPortManager()
Returns the port manager for the wrapper.
|
SessionManager |
getSessionManager()
This will return the session manager if one exists.
|
SessionManager |
getSessionManager(int deviceId)
return the session manager for the provided device id.
|
double |
getT3()
Returns the reply timeout.
|
boolean |
initializeConnection()
Connected the session.
|
void |
setActive(boolean flag)
Determines whether newly created sessions should be set to the active session.
|
void |
setDefault(boolean flag)
Determines whether newly created sessions should be set to the default session.
|
void |
setDeviceId(int newValue)
this sets the current device id.
|
void |
setLogger(LoggerInterface theLogger)
Sets the logger for the current connection.
|
void |
setPortManager(PortManager pm)
Sets the port manager for the wrapper.
|
void |
setT3(double t3)
Sets the reply timeout.
|
secsEvent
static final java.lang.String cvsRev
static final long serialVersionUID
void addMessageHandler(java.lang.Object theMessageHandler)
theMessageHandler
- the message handler to addSecsMsg.processSelf(java.lang.Object)
void addMessageHandler(java.io.Serializable theMessageHandler)
theMessageHandler
- the message handler to addSecsMsg.processSelf(java.lang.Object)
boolean connect()
void disconnect()
int getDeviceId()
LoggerInterface getLogger()
int getPort()
PortManager getPortManager()
SessionManager getSessionManager()
SessionManager getSessionManager(int deviceId)
double getT3()
boolean initializeConnection() throws SecsException
SecsException
void setActive(boolean flag)
flag
- true if created session should be made the active session.SessionManager#setActive
void setDefault(boolean flag)
flag
- true if created session should be made the default session.SessionManager.setDefault()
void setDeviceId(int newValue)
getDeviceId.
void setLogger(LoggerInterface theLogger)
theLogger
- the logger to add.void setPortManager(PortManager pm)
the
- port manager.void setT3(double t3)
Copyright © 1999-2021 ErgoTech Systems, Inc. All Rights Reserved.