| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
final static int | CONTENT |
final static String | CSP String used to reference a CSP object when represented as a Content object. |
final static String | CSPEXCLUSION String CSP-exclusion objects are always referenced with when stored in Content objects. |
final static String | CSPREF String used to reference the variable containing the name of the CSP. |
final static String | CSPRELATION String CSP-relation objects are always referenced with when stored in Content objects. |
final static String | CSPVARIABLE String CSP-variable objects are always referenced with when stored in Content objects. |
final static int | LIST |
final static int | LONG |
final 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. |
Vector | getRelations() Returns a Vector of all the Relations contained in the CSP. |
Vector | getVariables() Retrieves a Vector of all the variables in this CSP. |
void | identify(String str) Adds a unique name with which to identify this CSP. |
String | identity() Returns the identifier to this CSP. |
static void | main(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. |
String | toString() Returns a String representation of the CSP. |
Field Detail |
public final static int CONTENT
public final static String CSP
public final static String CSPEXCLUSION
public final static String CSPREF
public final static String CSPRELATION
public final static String CSPVARIABLE
public final static int LIST
public final static int LONG
public final static int STRING
Constructor Detail |
public CSP()
public CSP(Content content)
Method Detail |
public void addRelationship(CSPRelation relation)
public void addVariable(CSPVariable variable)
public CSP copy()
public Vector getRelations()
public Vector getVariables()
public void identify(String str)
public String identity()
public static void main(String[] args)
public Content toContent()
public String toString()
Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.util.Vector
to Class java.util.Vector
to Class java.util.Vector
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |