| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class represents as CSP-solution Object as described in the
"CCL Language Specification v2.01" section 4.1.1.2, p5.
This object captures the notion of a solution to a choice problem.
Here all the choices are assigned an appropriate value and the
assignment violates none of the posted constraints.
Field Summary | |
final static int | CONTENT |
final static String | CSPSOLUTION String used to reference a Content object representing a CSPSolution object |
final static String | CSPVARIABLEASSIGNMENT String used to reference a Content object representing a CSPVariableAssignment object. |
final static String | HREF String used to reference the identifier of a CSPSolution object when represented as an Attribute of a Content object. |
final static int | LIST |
final static int | LONG |
final static int | STRING |
Constructor Summary | |
CSPSolution() Constructs an empty CSPSolution | |
CSPSolution(String name) Constructs a CSPSolution with the given name. | |
CSPSolution(Content content) Constructs a new CSPSolution and populates it with the Data in the passed Content object. |
Method Summary | |
void | addVariable(CSPVariableAssignment var) Adds a new Variable Assignment to the CSPSolution This represents another element in the solution. |
CSPSolution | copy() Returns a copy of the CSPSolution object. |
void | identify(String str) Identifies the CSPSolution. |
String | identity() Returns the identifier for the CSPSolution. |
static void | main(String[] args) Used for testing the class. |
Content | toContent() Returns a Content object populated with the Data held in this CSPSolution object. |
String | toString() Returns a String representation of the CSPSolution. |
Vector | variables() Returns a Vector containing all the Variable Assignments that represent the solution to the CSP problem. |
Field Detail |
public final static int CONTENT
public final static String CSPSOLUTION
public final static String CSPVARIABLEASSIGNMENT
public final static String HREF
public final static int LIST
public final static int LONG
public final static int STRING
Constructor Detail |
public CSPSolution()
public CSPSolution(String name)
public CSPSolution(Content content)
Method Detail |
public void addVariable(CSPVariableAssignment var)
public CSPSolution copy()
public void identify(String str)
public String identity()
public static void main(String[] args)
public Content toContent()
public String toString()
public Vector variables()
Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.util.Vector
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |