|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.skill.constraint.ccl.variable.CSPVariableAssignment
This class describes the object CSP-variable-assignment as described in the document
"CCL Language Specification v2.01" section 4.2.2.5, p13.
The variable named in the Variable-name slot is assigned the value given in the
Variable-value slot. This represents a variable instantiation- a choice being made.
Field Summary | |
static java.lang.String |
CSPVARIABLEASSIGNMENT
Name that a CSPVariableAssignment is referenced with when represented as a Content object. |
static java.lang.String |
NAME
Name of the attribute a "Name" value is represented as in Content objects. |
Constructor Summary | |
CSPVariableAssignment()
Constucts an empty CSPVariableAssignment |
|
CSPVariableAssignment(Content content)
Constructs a new CSPVariableAssignment and populates it with Data held in the passed Content object. |
Method Summary | |
void |
addCSPValue(CSPValue value)
This is the value that is to be assigned. |
CSPVariableAssignment |
copy()
Returns a copy of the CSPVariableAssignment object. |
CSPValue |
getCSPValue()
Returns the CSPValue this object contains |
java.lang.String |
getVariableName()
Returns the name of the value. |
static void |
main(java.lang.String[] args)
Used for testing. |
Content |
toContent()
Returns a Content object populated with the Data held in this class that represents the CSPVariableAssignment. |
java.lang.String |
toString()
Returns a String representation of this object. |
void |
variableName(java.lang.String str)
Assigns a name to the value. |
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 CSPVARIABLEASSIGNMENT
public static final java.lang.String NAME
Constructor Detail |
public CSPVariableAssignment()
public CSPVariableAssignment(Content content)
Method Detail |
public void addCSPValue(CSPValue value)
public CSPValue getCSPValue()
public void variableName(java.lang.String str)
public java.lang.String getVariableName()
public CSPVariableAssignment copy()
public java.lang.String toString()
toString
in class java.lang.Object
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 |