org.universAAL.kinect.adapter.communication.receiver
Class MessageParser

Package class diagram package MessageParser
java.lang.Object
  extended by 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.


Constructor Summary
MessageParser(IMessageBroker broker)
          Constructor
 
Method Summary
 Object parse(Object o)
          This method parses the input string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageParser

public MessageParser(IMessageBroker broker)
Constructor

Parameters:
broker - where the parsed messages are forwarded.
Method Detail

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.