org.universAAL.kinect.adapter.communication.receiver
Class MessageParser
java.lang.Object
org.universAAL.kinect.adapter.communication.receiver.MessageParser
public class MessageParser
- extends Object
This class parses the messages received from the network, and forwards them
to a message broker.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageParser
public MessageParser(IMessageBroker broker)
- Constructor
- Parameters:
broker
- where the parsed messages are forwarded.
parse
public final Object parse(Object o)
throws AdapterException
- This method parses the input string. Then calls the broker and return
with the return value from the worker. Message structure:
"type<<>>>message<<>>args" example
message:"1<<>>msg2<<>>[http://ontology.igd
.fhg.de/LightingConsumer.owl#controlledLamps, XXX, YASDAS, XXXYYY, 1, 2,
3]"
- Parameters:
o
- Object to be parsed
- Returns:
-
- Throws:
AdapterException
Copyright © 2014 universAAL Consortium. All Rights Reserved.