| |
|
| java.lang.Object java.util.AbstractCollection org.cougaar.planning.ldm.plan.ContextOfUIDs
ContextOfUIDs | public class ContextOfUIDs extends AbstractCollection implements Context,Collection(Code) | | ContextOfUIDs is an implementation of Context. It is simply a collection of UIDs.
It can be used when the "problem" or "problems" that a task is related to can be
be referenced by the "problem's" UID.
See Also: UID See Also: Context |
Inner Class :public static class UIDIterator implements Iterator | |
Constructor Summary | |
public | ContextOfUIDs(Collection uids) Copies all UID objects from uids into the ContextOfUIDs
If there are objects in uids that are not UID objects, they will not be added. | public | ContextOfUIDs() Creates empty ContextOfUIDs
This is completely useless as this object is immutable. | public | ContextOfUIDs(UID oneUID) | public | ContextOfUIDs(UID[] arrayOfUIDS) |
ContextOfUIDs | public ContextOfUIDs(Collection uids)(Code) | | Copies all UID objects from uids into the ContextOfUIDs
If there are objects in uids that are not UID objects, they will not be added.
See Also: org.cougaar.core.util.UID |
ContextOfUIDs | public ContextOfUIDs()(Code) | | Creates empty ContextOfUIDs
This is completely useless as this object is immutable.
|
ContextOfUIDs | public ContextOfUIDs(UID oneUID)(Code) | | Constructor that creates a collection with one and only one UID
|
ContextOfUIDs | public ContextOfUIDs(UID[] arrayOfUIDS)(Code) | | A constructor that copies the elements of the passed in array into the collection
|
containsAll | public boolean containsAll(Collection other)(Code) | | true if this collection contains all of the elements in other |
get | public UID get(int i)(Code) | | Simple accessor for n-th uid. Avoids consing iterators or arrays.
|
merge | public static ContextOfUIDs merge(Collection contexts)(Code) | | Convenience method that creates a new ContextOfUIDs that is the union of
the of all of the members of the Collection passed in. Items in the Collection
that are not instances of ContextOfUIDs are ignored.
Parameters: contexts - A Collection containing ContextOfUIDs the union of the members of parameter |
size | public int size()(Code) | | the number of elements in the collection |
toArray | public Object[] toArray(Object[] array)(Code) | | an array of UIDs with all the UIDs in the collection Parameters: array - an array of UID. A new array will be allocated if array size is incorrect. exception: Throws - ArrayStoreException if array is not an array of UID |
|
|
|