com.agentfactory.platform.mts
Class FIPAHelper

java.lang.Object
  extended by com.agentfactory.platform.mts.FIPAHelper

public class FIPAHelper
extends java.lang.Object

This class contains various methods that support the ALPHAAgent Factort implementation of the FIPA Standards.


Constructor Summary
FIPAHelper()
           
 
Method Summary
static java.util.ArrayList getMessageTokens(java.lang.String message)
          This method tokenizes a FIPA Message String delimited by spaces that are not wrapped in brackets.
static byte[] toBytes(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIPAHelper

public FIPAHelper()
Method Detail

getMessageTokens

public static java.util.ArrayList getMessageTokens(java.lang.String message)
This method tokenizes a FIPA Message String delimited by spaces that are not wrapped in brackets. E.g. (example token (another token)) ^ ^ ^ Delimiters Not a Delimiter

Parameters:
message - the FIPA message to be tokenized
Returns:
an arraylist of tokens

toBytes

public static byte[] toBytes(java.lang.String text)