fipaos.skill.constraint.message
Class CCLMessage

java.lang.Object
  |
  +--fipaos.skill.constraint.message.CCLMessage

public class CCLMessage
extends java.lang.Object


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
static int CONTENT
           
static int LIST
           
static int LONG
           
static int STRING
           
 
Constructor Summary
CCLMessage(java.lang.String str)
          
Constructs a new CCLMessage object using the information held in the passed
String to populate it.
 
Method Summary
 boolean CSPPresent()
          Returns true if the message contains a CSP
 boolean CSPSolutionPresent()
          Returns true if the message contains a CSPSolution
 CSP getCSP()
          Returns a CSP the message may contain.
 CSPSolution getCSPSolution()
          Returns a CSPSolution the message may contain.
static void main(java.lang.String[] args)
           
static java.lang.String toTextMessage(Content content)
          
Takes the passed Content object and converts it into a String which
it then returns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT

public static final int CONTENT

LIST

public static final int LIST

LONG

public static final int LONG

STRING

public static final int STRING
Constructor Detail

CCLMessage

public CCLMessage(java.lang.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

toTextMessage

public static java.lang.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.

getCSP

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

getCSPSolution

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

CSPPresent

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

CSPSolutionPresent

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

main

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