| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class describes the object CSP-variable as described in the document
"CCL Language Specification v2.01" section 4.2.2.4, p13.
This object represents a single choice to be made, along with a set of possible
options for that choice.
The Type and Role slots enable the Variable to be situated within the problem
solving context.
Field Summary | |
final static String | CSPVARIABLE Attribute name a CSPVariable is always referred to when represented as a Content object. |
final static String | DOMAIN Used to identify a Content object containing the values this variable may take when the CSPVariable is represented as a Content object. |
final static String | NAME Used to identify a variable within a CSP when represented as a Content object. |
final static String | TYPE Used to identify the type of variable this CSPVariable may contain when represented as a Content object. |
Constructor Summary | |
CSPVariable() Constucts an Empty CSPVariable. | |
CSPVariable(Content content) Constructs a new CSPVariable and populates it using the values passed in the Content object. |
Method Summary | |
void | addType(String str) This specifies another type for the CSPVariable. |
void | addValue(CSPValue value) Adds another the value to the list of values this object can take. |
CSPVariable | copy() Produces a copy of a CSPVariable object. |
String | getName() Returns the name of the CSPVariable |
CSPRange | getRange() Retrieves the CSPRange value held in this variable. |
Vector | getRoles() Returns a Vector of the roles that this CSPVariable may take. |
Vector | getTypes() This retrieves a Vector containing the types that this CSPVariable can take. |
Vector | getValues() Returns a Vector containing the possible values this Variable can take. |
static void | main(String[] args) Used for testing. |
void | setName(String str) Sets of name for the CSPVariable |
void | setRange(CSPRange range) Sets a CSPRange object for the CSPVariable. |
void | setRole(String str) Adds another role. |
Content | toContent() Returns a Content object populated using the Data held in this CSPVariable. |
String | toString() Produces a String representation of a CSPVariable. |
Field Detail |
public final static String CSPVARIABLE
public final static String DOMAIN
public final static String NAME
public final static String TYPE
Constructor Detail |
public CSPVariable()
public CSPVariable(Content content)
Method Detail |
public void addType(String str)
public void addValue(CSPValue value)
public CSPVariable copy()
public String getName()
public CSPRange getRange()
public Vector getRoles()
public Vector getTypes()
public Vector getValues()
public static void main(String[] args)
public void setName(String str)
public void setRange(CSPRange range)
public void setRole(String str)
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 fipaos.skill.constraint.ccl.variable.CSPRange
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 |