| java.lang.Object org.cougaar.core.blackboard.Subscription org.cougaar.core.blackboard.CollectionSubscription
All known Subclasses: org.cougaar.core.blackboard.QuerySubscription, org.cougaar.core.blackboard.IncrementalSubscription,
Method Summary | |
public boolean | add(Object o) Use
org.cougaar.core.service.BlackboardService.publishAdd instead.
Add an object to the backing collection, not the blackboard. | public boolean | addAll(Collection c) Use
org.cougaar.core.service.BlackboardService.publishAdd instead.
Add objects to the backing collection, not the blackboard. | public void | clear() Use
org.cougaar.core.service.BlackboardService.publishRemove instead.
Clear the backing collection, not the blackboard. | boolean | conditionalChange(Object o, List changes, boolean isVisible) | public boolean | contains(Object o) | public boolean | containsAll(Collection c) | public Enumeration | elements() | public boolean | equals(Object o) | public Object | first() the first object in the collection. | public Set | getChangeReports(Object o) Return the set of
ChangeReport s for publishChanges made
to the specified object since the last transaction.
If an object is changed without specifying a ChangeReport
then the "AnonymousChangeReport" is used. | public Collection | getCollection() Retrieve the underlying Collection backing this Subscription. | public boolean | isEmpty() | public Iterator | iterator() | protected void | privateAdd(Object o, boolean isVisible) | protected void | privateChange(Object o, List changes, boolean isVisible) | protected Collection | privateGetChangedCollection() | protected Enumeration | privateGetChangedList() | protected void | privateRemove(Object o, boolean isVisible) | public boolean | remove(Object o) Use
org.cougaar.core.service.BlackboardService.publishRemove instead.
Remove an object from the backing collection, not the blackboard. | public boolean | removeAll(Collection c) Use
org.cougaar.core.service.BlackboardService.publishRemove instead.
Remove objects from the backing collection, not the blackboard. | protected void | resetChanges() | public boolean | retainAll(Collection c) Use
org.cougaar.core.service.BlackboardService.publishRemove instead.
Retain objects in the backing collection, not the blackboard. | public int | size() | public Object[] | toArray() | public Object[] | toArray(Object[] a) | public String | toString() |
conditionalChange | boolean conditionalChange(Object o, List changes, boolean isVisible)(Code) | | overrides Subscription.conditionalChange
|
contains | public boolean contains(Object o)(Code) | | true of the subscription contains the object |
containsAll | public boolean containsAll(Collection c)(Code) | | true of the subscription contains all the objects |
elements | public Enumeration elements()(Code) | | an enumeration of the subscription objects |
first | public Object first()(Code) | | the first object in the collection. |
getChangeReports | public Set getChangeReports(Object o)(Code) | | Return the set of
ChangeReport s for publishChanges made
to the specified object since the last transaction.
If an object is changed without specifying a ChangeReport
then the "AnonymousChangeReport" is used. Thus the set
is always non-null and contains one or more entries.
If an object is not changed during the transaction then
this method returns null.
Illegal to call outside of transaction boundaries.
if the object was changed: a non-null Set of one or more ChangeReport instances, possibly containing the AnonymousChangeReport; otherwise null. |
getCollection | public Collection getCollection()(Code) | | Retrieve the underlying Collection backing this Subscription.
When an object is publishAdded and matches the predicate, it
will be added to the Collection. If it is later publishRemoved
(and the predicate still matches), then the object will be
removed from the Collection.
the subscription's collection -- use this instead. |
iterator | public Iterator iterator()(Code) | | an Iterator of the subscription contents |
privateRemove | protected void privateRemove(Object o, boolean isVisible)(Code) | | Subscriber method to remove an object
|
resetChanges | protected void resetChanges()(Code) | | Subscriber method to reset the ChangeReports map
|
size | public int size()(Code) | | the subscription size |
toArray | public Object[] toArray()(Code) | | an array of the subscription contents |
|
|