public class AlienGPIOSession extends AbstractServerSocketSensorSession
Constructor and Description |
---|
AlienGPIOSession(AbstractSensor<?> sensor,
java.lang.String ID,
int serverSocketPort,
AlienIOListMessageParsingStrategy parsingStrategy)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Close the connection and stop processing of commands.
|
void |
initialize(Alien9800ReaderSession interactiveSession)
Initialize must be called before connect can be called
|
java.lang.String |
toString() |
killComand, restoreCommands, submit, submit
getCommandInstance, getStatus, submit, submitAndBlock, suspendCommand
connect, getCommands, getDTO, getID, getSensor, getTimeout, handleTimeout, killAllCommands
public AlienGPIOSession(AbstractSensor<?> sensor, java.lang.String ID, int serverSocketPort, AlienIOListMessageParsingStrategy parsingStrategy)
sensor
- The sensor this session belongs toID
- The ID of this sessionserverSocketPort
- The port to open up a listening socket onparsingStrategy
- The strategy to use to parse strings into AlienGPIOMessages
(e.g. text, terse, xml, custom)public void initialize(Alien9800ReaderSession interactiveSession) throws CannotExecuteException
interactiveSession
- The live interactive session used to query the reader for it's
current state of external input and outputCannotExecuteException
- if there was a problem when the initialization was attempted.public void disconnect()
SensorSession
disconnect
in class AbstractServerSocketSensorSession
public java.lang.String toString()
toString
in class AbstractServerSocketSensorSession