|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zu.ardulink.protocol.parser.ALProtocolParser
public class ALProtocolParser
Constructor Summary | |
---|---|
ALProtocolParser()
|
Method Summary | |
---|---|
int[] |
analogRead(int pin,
int value)
write a message for an analog read event |
int[] |
customMessage(String message)
write a custom message |
int[] |
digitalRead(int pin,
int value)
write a message for a digital read event |
IProtocolMessageStore |
getMessageStore()
|
String |
getProtocolName()
|
MessageParsedInfo |
parse(String message)
Parse an incoming message. |
int[] |
reply(boolean success,
MessageParsedInfo messageParsedInfo)
write a Reply message like arduino that use a specific protocol |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ALProtocolParser()
Method Detail |
---|
public String getProtocolName()
getProtocolName
in interface IProtocolParser
public MessageParsedInfo parse(String message) throws ParseException
IProtocolParser
parse
in interface IProtocolParser
ParseException
public int[] reply(boolean success, MessageParsedInfo messageParsedInfo)
IProtocolParser
reply
in interface IProtocolParser
public int[] analogRead(int pin, int value)
IProtocolParser
analogRead
in interface IProtocolParser
public int[] digitalRead(int pin, int value)
IProtocolParser
digitalRead
in interface IProtocolParser
public int[] customMessage(String message)
IProtocolParser
customMessage
in interface IProtocolParser
public IProtocolMessageStore getMessageStore()
getMessageStore
in interface IProtocolParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |