com.agentfactory.platform.mts
Class FIPAContent

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

public class FIPAContent
extends java.lang.Object

This class is used to contain FIPA-syntax compliant content.


Method Summary
 FIPAContent get(int index)
          Returns the content at the specified index.
 java.lang.String getCommand()
           
 java.lang.String getString(int index)
           
static void main(java.lang.String[] args)
           
static FIPAContent newInstance(java.lang.String content)
          Factory method that creates a new instance of FIPAContent based upon the contents of the "content" String.
 int size()
           
 java.lang.String toString()
          Converts an instance of of FIPAContent into String format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newInstance

public static FIPAContent newInstance(java.lang.String content)
Factory method that creates a new instance of FIPAContent based upon the contents of the "content" String.

Parameters:
content - the content to be encoded in the instance.
Returns:
an instance of the FIPAContent class.

get

public FIPAContent get(int index)
Returns the content at the specified index.

Parameters:
index - the index to be returned.

getString

public java.lang.String getString(int index)

getCommand

public java.lang.String getCommand()

toString

public java.lang.String toString()
Converts an instance of of FIPAContent into String format.

Overrides:
toString in class java.lang.Object

size

public int size()

main

public static void main(java.lang.String[] args)