|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.skill.constraint.ccl.variable.CSPValue
This class describes the object CSP-value as described in the document
"CCL Language Specification v2.01" section 4.2.2.2, p12.
This object represents an option. In general this can be a tuple- hence
the variable is an ordered list of domain terms.
May contain the following information:
Npart integer 1
Elements List {domain-term} {blue, green, red}
Tags Set {symbol} {T1, T2}
Field Summary | |
static java.lang.String |
CSPVALUE
Name CSPValue objects are labelled with when represented as Content objects. |
static java.lang.String |
ELEMENTS
Used to reference the Element that contains the Value when represented as a Content object. |
static java.lang.String |
NAME
|
static java.lang.String |
NPART
Name of the Attribute the Npart value is stored with when represented in Content objects. |
static java.lang.String |
TAGS
|
static java.lang.String |
VALUE
Name of the Attribute the Values contained in this class are stored as in Content objects. |
Constructor Summary | |
CSPValue()
Constructs an Empty CSPValue. |
|
CSPValue(Content content)
Constructs a new CSPValue object and populates it using the Data held in the passed Content object. |
Method Summary | |
void |
addElement(java.lang.String str)
Adds an Element to the CSPValue. |
void |
addTag(java.lang.String str)
Adds a Tag to the CSPValue. |
CSPValue |
copy()
Returns a copy of this CSPValue object. |
java.util.Vector |
getElements()
Returns a Vector of all the Elements held |
java.lang.String |
getElementString()
Returns a String representation of the collection of Elements |
int |
getNparts()
Returns the number of items in the Elements Parameter. |
java.util.Vector |
getTags()
Retrieves the set of all the tags. |
java.lang.String |
getTagString()
Returns a String representation of the collection of Tags If there are more than one will return them surrounded by brackets. |
static void |
main(java.lang.String[] args)
Used for testing. |
Content |
toContent()
Returns a Content object populated with the Data held in this CSPValue object. |
java.lang.String |
toString()
Returns a String representation of this CSPValue object. |
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 ELEMENTS
public static final java.lang.String CSPVALUE
public static final java.lang.String NPART
public static final java.lang.String VALUE
public static final java.lang.String TAGS
public static final java.lang.String NAME
Constructor Detail |
public CSPValue()
public CSPValue(Content content)
Method Detail |
public void addElement(java.lang.String str)
public java.util.Vector getElements()
public java.lang.String getElementString()
public void addTag(java.lang.String str)
public java.util.Vector getTags()
public java.lang.String getTagString()
public int getNparts()
public CSPValue 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 |