Actuator
Class MessageActuator

java.lang.Object
  extended by Actuator.Actuator
      extended by Actuator.MessageActuator
All Implemented Interfaces:
IMessageCompose, IMetaOperations, IParseOperations

public class MessageActuator
extends Actuator
implements IMessageCompose, IParseOperations, IMetaOperations

General Message Actuator for binary protocols that is specialised by the loaded message description language.

Author:
Paul Grace, Lancaster University

Field Summary
 
Fields inherited from class Actuator.Actuator
DSLContent, Parser, parsingOperations
 
Constructor Summary
MessageActuator(java.lang.String File)
           
 
Method Summary
 byte[] MessageCompose(AbstractMessage Message)
          Takes an object describing the message and converts it into a stream of bytes that can be sent as a network message.
 
Methods inherited from class Actuator.Actuator
addFunction, addParseOperation, composeTypedValue, decode, getConstantValue, getFunctionResult, getFunctionResult, getTextTypedValue, getTypedValue, inspectFunctions, inspectParseOperations, removeFunction, removeParseOperation, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ParsingFramework.IParseOperations
composeTypedValue, decode, getConstantValue, getFunctionResult, getFunctionResult, getTextTypedValue, getTypedValue, toByteArray
 
Methods inherited from interface ParsingFramework.IMetaOperations
addFunction, addParseOperation, inspectFunctions, inspectParseOperations, removeFunction, removeParseOperation
 

Constructor Detail

MessageActuator

public MessageActuator(java.lang.String File)
Method Detail

MessageCompose

public byte[] MessageCompose(AbstractMessage Message)
Takes an object describing the message and converts it into a stream of bytes that can be sent as a network message.

Specified by:
MessageCompose in interface IMessageCompose
Parameters:
Message - The object describing the data to fill the message
Returns:
A byte array with the network message