public interface IComposite extends IComponent
IElement
objects and other composites exposing
the IComposite
interface. Both interfaces are derived from
the base interface IComponent.
Modifier and Type | Method and Description |
---|---|
void |
addChild(IComponent iComp)
Add a direct child object to the current composite element.
|
IComponent |
getChild(int index)
Return the direct descendant given by the index.
|
int |
getChildCount()
Return the number of direct descendants in this composite.
|
java.util.Iterator<IComponent> |
globalIterator()
Returns iterator over all the components in this composite
element in proper sequence.
|
java.util.Iterator<IComponent> |
localIterator()
Return iterator over direct descendants only of this composite element
in sequence.
|
void |
propagate(IProbe probe)
Propagates the Probe object through this composite element
sequentially element by element.
|
boolean |
remove(IComponent iComp)
Remove the specified child from the composite element
|
backPropagate, backPropagate, getHardwareNodeId, getId, getLength, getType, initializeFrom, propagate
java.util.Iterator<IComponent> localIterator()
Iterator
java.util.Iterator<IComponent> globalIterator()
Iterator
,
CompositeGlobalIterator
int getChildCount()
IComponent getChild(int index) throws java.lang.IndexOutOfBoundsException
index
- index of child node (index origin 0)java.lang.IndexOutOfBoundsException
- index was greater than child countvoid addChild(IComponent iComp)
iComp
- interface to the new child elementboolean remove(IComponent iComp)
iComp
- interface to the child to be removedvoid propagate(IProbe probe) throws ModelException
NOTES: CKA
· This looks to be redundant! It is overriding the
same method in the super interface IComponent
.
propagate
in interface IComponent
probe
- probe state will be advance using the elements dynamicsModelException
- an error advancing probe stateIComponent.propagate(IProbe)