|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.actor.gt.GTIngredient
ptolemy.actor.gt.ingredients.criteria.Criterion
ptolemy.actor.gt.ingredients.criteria.SubclassCriterion
public class SubclassCriterion
A criterion to constrain the class of an object in the host model.
| Red (tfeng) |
| Yellow (tfeng) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.actor.gt.GTIngredient |
|---|
GTIngredient.FieldIterator |
| Field Summary | |
|---|---|
private static CriterionElement[] |
_ELEMENTS
The elements. |
private java.lang.String |
_superclass
Value of the superclass element. |
| Fields inherited from class ptolemy.actor.gt.GTIngredient |
|---|
FIELD_SEPARATOR |
| Constructor Summary | |
|---|---|
SubclassCriterion(GTIngredientList owner)
Construct a criterion within the given list as its owner. |
|
SubclassCriterion(GTIngredientList owner,
java.lang.String values)
Construct a criterion within the given list as its owner and initialize all the elements with the given values, which are a string encoding of those elements. |
|
| Method Summary | |
|---|---|
GTIngredientElement[] |
getElements()
Get the array of elements defined in this GTIngredient. |
java.lang.String |
getSuperclass()
Get the superclass element. |
java.lang.Object |
getValue(int index)
Get the value of the index-th elements. |
java.lang.String |
getValues()
Get a string that describes the values of all the elements. |
boolean |
match(NamedObj object)
Test whether the given object in the host model matches the object in the pattern that has this criterion. |
void |
setValue(int index,
java.lang.Object value)
Set the value of the index-th element. |
void |
setValues(java.lang.String values)
Set the values of all the elements with a string that describes them. |
void |
validate()
Validate the enablements and values of all the elements. |
| Methods inherited from class ptolemy.actor.gt.ingredients.criteria.Criterion |
|---|
canCheck |
| Methods inherited from class ptolemy.actor.gt.GTIngredient |
|---|
_decodeBooleanField, _decodeStringField, _encodeBooleanField, _encodeStringField, _escapeElementString, _findMatchingParen, _findSeparator, _unescapeElementString, disableAll, enableAll, getOwner, isApplicable, isEnabled, setEnabled, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final CriterionElement[] _ELEMENTS
private java.lang.String _superclass
| Constructor Detail |
|---|
public SubclassCriterion(GTIngredientList owner)
owner - The list as the owner of the constructed GTIngredientList.
public SubclassCriterion(GTIngredientList owner,
java.lang.String values)
owner - The list as the owner of the constructed GTIngredientList.values - The string encoding of the values of the elements.| Method Detail |
|---|
public GTIngredientElement[] getElements()
getElements in class GTIngredientpublic java.lang.String getSuperclass()
public java.lang.Object getValue(int index)
getValue in class GTIngredientindex - The index.
setValue(int, Object)public java.lang.String getValues()
getValues in class GTIngredientsetValues(String)public boolean match(NamedObj object)
match in class Criterionobject - The object.
public void setValue(int index,
java.lang.Object value)
setValue in class GTIngredientindex - The index.value - The value.getValue(int)public void setValues(java.lang.String values)
setValues in class GTIngredientvalues - A string that describes the new values of all the
elements.getValues()
public void validate()
throws ValidationException
validate in class GTIngredientValidationException - If some elements are invalid.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||