public class AlienGPIOMessageProcessingStrategy extends java.lang.Object implements MessageProcessingStrategy
Constructor and Description |
---|
AlienGPIOMessageProcessingStrategy(AlienIOListMessageParsingStrategy iOListMessageParsingStrategy,
Alien9800Reader reader,
int currentExternalInput,
int currentExternalOutput)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
processMessage(byte[] message)
A hook to allow implementations to do do something with the message when
it has been completely received from the socket
|
public AlienGPIOMessageProcessingStrategy(AlienIOListMessageParsingStrategy iOListMessageParsingStrategy, Alien9800Reader reader, int currentExternalInput, int currentExternalOutput)
iOListMessageParsingStrategy
- The strategy use to parse strings into AlienGPIOMessage
objectsreader
- The reader used to submit events to espercurrentExternalInput
- The initial state of the externalinputscurrentExternalOutput
- the initial state of the externaloutputspublic void processMessage(byte[] message)
MessageProcessingStrategy
processMessage
in interface MessageProcessingStrategy
message
- The complete message