|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<GTIngredient>
ptolemy.actor.gt.GTIngredientList
public class GTIngredientList
A list of GTIngredients. Such a list is contained in a GTIngredientsAttribute, which is associated with special entities in a transformation rule, such as AtomicActorMatcher and CompositeActorMatcher. GTIngredients in this list are either all criteria or all operations.
| Red (tfeng) |
| Yellow (tfeng) |
| Field Summary | |
|---|---|
private GTIngredientsAttribute |
_owner
The attribute that contain this list of ingredients. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
GTIngredientList(GTIngredientsAttribute owner)
Construct an empty GTIngredientList contained by the given attribute. |
|
GTIngredientList(GTIngredientsAttribute owner,
GTIngredient... ingredients)
Construct a GTIngredientList contained by the given attribute with some initial ingredients. |
|
GTIngredientList(GTIngredientsAttribute owner,
GTIngredientList template)
Construct a GTIngredientList contained by the given attribute, and add all the ingredients in the template to this one. |
|
| Method Summary | |
|---|---|
GTIngredientsAttribute |
getOwner()
Get the GTIngredientsAttribute that contain this list. |
static GTIngredientList |
parse(GTIngredientsAttribute owner,
java.lang.String expression)
Parse the given expression and construct a GTIngredientList in the given GTIngredientsAttribute. |
java.lang.String |
toString()
Return a string that describes all the ingredients within this list. |
void |
validate()
Check validity of the contained ingredients. |
| Methods inherited from class java.util.LinkedList |
|---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
private GTIngredientsAttribute _owner
| Constructor Detail |
|---|
public GTIngredientList(GTIngredientsAttribute owner)
owner - The attribute that contains this list of ingredients.
public GTIngredientList(GTIngredientsAttribute owner,
GTIngredient... ingredients)
owner - The attribute that contains this list of ingredients.ingredients - The initial ingredients, which should be all criteria
or all operations.
public GTIngredientList(GTIngredientsAttribute owner,
GTIngredientList template)
owner - The attribute that contains this list of ingredients.template - Another GTIngredientList whose ingredients are to be
added to this one. The references of those ingredients are copied. No
cloning is done.| Method Detail |
|---|
public GTIngredientsAttribute getOwner()
public static GTIngredientList parse(GTIngredientsAttribute owner,
java.lang.String expression)
throws MalformedStringException
owner - The attribute that contains the constructed list.expression - The expression to parse.
MalformedStringException - If the expression is malformed.public java.lang.String toString()
toString in class java.util.AbstractCollection<GTIngredient>
public void validate()
throws ValidationException
ValidationException - If some ingredients are invalid.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||