fipaos.skill.constraint.message
Class CCLMessage


public class CCLMessage


This class acts as an interface between text messages, a tree of parsed
Content objects and the CCLMessage class.
The purpose of the CCLMessage class is to allow the values held in a
CCLMessage to be easily retrieved.


Field Summary
 final static intCONTENT
           
 final static intLIST
           
 final static intLONG
           
 final static intSTRING
           

Constructor Summary
CCLMessage(String str)
          
Constructs a new CCLMessage object using the information held in the passed
String to populate it.

Method Summary
 booleanCSPPresent()
          Returns true if the message contains a CSP
 booleanCSPSolutionPresent()
          Returns true if the message contains a CSPSolution
 CSPgetCSP()
          Returns a CSP the message may contain.
 CSPSolutiongetCSPSolution()
          Returns a CSPSolution the message may contain.
 static voidmain(String[] args)
           
 static StringtoTextMessage(Content content)
          
Takes the passed Content object and converts it into a String which
it then returns.

Field Detail

CONTENT

public final static int CONTENT

LIST

public final static int LIST

LONG

public final static int LONG

STRING

public final static int STRING
Constructor Detail

CCLMessage

public CCLMessage(String str)

Constructs a new CCLMessage object using the information held in the passed
String to populate it.
This String is parsed into a Content object which is then used to populate
the CCLMessage class with Values.
Method Detail

CSPPresent

public boolean CSPPresent()
Returns true if the message contains a CSP

CSPSolutionPresent

public boolean CSPSolutionPresent()
Returns true if the message contains a CSPSolution

getCSP

public CSP getCSP()
Returns a CSP the message may contain.

getCSPSolution

public CSPSolution getCSPSolution()
Returns a CSPSolution the message may contain.

main

public static void main(String[] args)

toTextMessage

public static String toTextMessage(Content content)

Takes the passed Content object and converts it into a String which
it then returns.
The passed Content object should be a representation of a CSP, CSPSolution
or a CSPSolutionList.

Association Links

to Class fipaos.skill.constraint.ccl.object.CSP


Reference to a CSP the message may contain.

to Class fipaos.skill.constraint.ccl.object.CSPSolution


Reference to a CSPSolution the message may contain.