|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.skill.constraint.ccl.object.CSP
This class represents a CSP Object as described in the
"CCL Language specification v2.01" section 4.1.1.1, p5.
A CSP object represents a choice problem.
For a CSP object to be well defined, the items in the Exclusion and Relations
slots must only refer to variables which are present in the Variables slot.
7/3/00
Field Summary | |
static int |
CONTENT
|
static java.lang.String |
CSP
String used to reference a CSP object when represented as a Content object. |
static java.lang.String |
CSPEXCLUSION
String CSP-exclusion objects are always referenced with when stored in Content objects. |
static java.lang.String |
CSPREF
String used to reference the variable containing the name of the CSP. |
static java.lang.String |
CSPRELATION
String CSP-relation objects are always referenced with when stored in Content objects. |
static java.lang.String |
CSPVARIABLE
String CSP-variable objects are always referenced with when stored in Content objects. |
static int |
LIST
|
static int |
LONG
|
static int |
STRING
|
Constructor Summary | |
CSP()
Constructs an empty CSP object. |
|
CSP(Content content)
Constructs a new CSP object. |
Method Summary | |
void |
addRelationship(CSPRelation relation)
Adds a new CSPRelation. |
void |
addVariable(CSPVariable variable)
Adds a Variable to the CSP. |
CSP |
copy()
Returns a copy of this CSP. |
java.util.Vector |
getRelations()
Returns a Vector of all the Relations contained in the CSP. |
java.util.Vector |
getVariables()
Retrieves a Vector of all the variables in this CSP. |
void |
identify(java.lang.String str)
Adds a unique name with which to identify this CSP. |
java.lang.String |
identity()
Returns the identifier to this CSP. |
static void |
main(java.lang.String[] args)
With no variables the main method constructs and tests a CSP object. |
Content |
toContent()
Returns a Content object populated with Data representing the information held in this CSP object. |
java.lang.String |
toString()
Returns a String representation of the CSP. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CSPVARIABLE
public static final java.lang.String CSPRELATION
public static final java.lang.String CSPEXCLUSION
public static final java.lang.String CSPREF
public static final java.lang.String CSP
public static final int CONTENT
public static final int LIST
public static final int LONG
public static final int STRING
Constructor Detail |
public CSP()
public CSP(Content content)
Method Detail |
public void identify(java.lang.String str)
public java.lang.String identity()
public void addVariable(CSPVariable variable)
public java.util.Vector getVariables()
public void addRelationship(CSPRelation relation)
public java.util.Vector getRelations()
public java.lang.String toString()
toString
in class java.lang.Object
public CSP copy()
public Content toContent()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |