Listener
Interface IMessageParse

All Known Implementing Classes:
JavaObjectListener, Listener, MessageListener, TextMessageListener, XMLMessageListener

public interface IMessageParse

Interface of each message parser object. Where a message parser object converts messages of a single protocol to a machine understandable representation.

Version:
Connect 0.1
Author:
Paul Grace, Lancaster University

Method Summary
 AbstractMessage MessageParse(byte[] MessagePacket)
          Takes a Message packet which is a byte array and transfers it into a object that describes each message in terms of its name/type and the message fields with their value.
 AbstractMessage MessageParse(byte[] MessagePacket, java.util.ArrayList<java.lang.String> Extension)
          Takes a Message packet which is a byte array and transfers it into a object that describes each message in terms of its name/type and the message fields with their value.
 

Method Detail

MessageParse

AbstractMessage MessageParse(byte[] MessagePacket)
Takes a Message packet which is a byte array and transfers it into a object that describes each message in terms of its name/type and the message fields with their value.

Parameters:
MessagePacket - The message packet in bytes
Returns:
A AbstractMessage identified by a Message Type with fields and values describing each instance of the message.

MessageParse

AbstractMessage MessageParse(byte[] MessagePacket,
                             java.util.ArrayList<java.lang.String> Extension)
Takes a Message packet which is a byte array and transfers it into a object that describes each message in terms of its name/type and the message fields with their value. Uses a dynamic parser extension

Parameters:
MessagePacket - The message packet in bytes
Extension - The set of strings that add information to the parser
Returns:
A AbstractMessage identified by a Message Type with fields and values describing each instance of the message.