|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The BaseCompositeContainer interface is a collection container
specification for objects which implement the BaseComposite
interface. Such objects can be added to and removed from any instance of a
class which implements this interface.
The methods that deal with the contained composites are:
getCompositeCount()addComposite(com.tensegrity.composite.BaseComposite) / removeComposite(com.tensegrity.composite.BaseComposite)addComposites(java.util.List) / removeComposites(java.util.List)setComposites(java.util.List)removeAllComposites()getCompositeIterator()
| Method Summary | |
void |
addComposite(BaseComposite bcomposite)
Adds the given BaseComposite to this
BaseCompositeContainer. |
void |
addComposites(java.util.List bcomposites)
Adds the BaseComposites contained in the given list to this
BaseCompositeContainer. |
int |
getCompositeCount()
Returns the number of BaseComposite actually added to the
BaseCompositeContainer. |
BaseCompositeIterator |
getCompositeIterator()
Returns a BaseCompositeIterator that can be used to iterate
over the BaseCompositeContainers list of
BaseComposites. |
void |
removeAllComposites()
Removes all BaseComposites from the list of
BaseComposite of the BaseCompositeContainer. |
void |
removeComposite(BaseComposite bcomposite)
Removes the given BaseComposite from this
BaseCompositeContainer. |
void |
removeComposites(java.util.List bcomposites)
Removes the BaseComposites contained in the given list from
this BaseCompositeContainer. |
void |
setComposites(java.util.List bcomposites)
Add the BaseComposites contained in the given
List to this BaseCompositeContainer.
|
| Method Detail |
public int getCompositeCount()
BaseComposite actually added to the
BaseCompositeContainer.
BaseComposites in the
CompositeGrouppublic void addComposite(BaseComposite bcomposite)
BaseComposite to this
BaseCompositeContainer.
bcomposite - the BaseComposite to addpublic void removeComposite(BaseComposite bcomposite)
BaseComposite from this
BaseCompositeContainer.
bcomposite - the BaseComposite to removepublic void addComposites(java.util.List bcomposites)
BaseComposites contained in the given list to this
BaseCompositeContainer.
bcomposites - the list of BaseComposites to addpublic void removeComposites(java.util.List bcomposites)
BaseComposites contained in the given list from
this BaseCompositeContainer.
bcomposites - the list of BaseComposite to removepublic void setComposites(java.util.List bcomposites)
BaseComposites contained in the given
List to this BaseCompositeContainer.
All the BaseComposites that are part of the list of
BaseComposite of the BaseCompositeContainer but
not part of the List given by bcomposites will
be removed from the list of BaseComposite of the
BaseCompositeContainer.
bcomposites - the list of BaseComposites to set as
elements of the BaseCompositeContainerpublic void removeAllComposites()
BaseComposites from the list of
BaseComposite of the BaseCompositeContainer.
public BaseCompositeIterator getCompositeIterator()
BaseCompositeIterator that can be used to iterate
over the BaseCompositeContainers list of
BaseComposites.
BaseCompositeContainers list of BaseComposites
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||