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.
Constructor Summary |
CCLMessage(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(String[] args) |
static String | toTextMessage(Content content) Takes the passed Content object and converts it into a String which
it then returns. |
CONTENT
public final static int CONTENT
LIST
public final static int LIST
LONG
public final static int LONG
STRING
public final static int STRING
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.
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.
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.