| java.lang.Object org.cougaar.lib.aggagent.query.QueryResultAdapter
QueryResultAdapter | public QueryResultAdapter(AggregationQuery q)(Code) | | Create a QueryResultAdapter to contain a particular query. At the
current time, only one type of result set is supported, so it is
automatically constructed and installed here.
|
QueryResultAdapter | public QueryResultAdapter(Element qraRoot)(Code) | | Create a QueryResultAdapter based on xml
|
addAlert | public void addAlert(Alert a)(Code) | | Register an Alert as interested in events on this query.
|
addCluster | public void addCluster(String clusterId)(Code) | | Add a cluster to the query.
|
allClustersResponded | public boolean allClustersResponded()(Code) | | |
getAlerts | public Iterator getAlerts()(Code) | | Notify the registered Alerts that new information has become available
for this query. They will then examine the result set and respond as
they see fit.
|
getAndResetAddedClusters | public Vector getAndResetAddedClusters()(Code) | | Retrieve the Vector of clusters that have been added to this
QRA after it was created. This will reset the list of added clusters
when it is called
|
getAndResetRemovedClusters | public Vector getAndResetRemovedClusters()(Code) | | Retrieve the Vector of clusters that have been removed from this
QRA after it was created. This will reset the list of removed clusters
when it is called
|
removeAlert | public Alert removeAlert(String alertName)(Code) | | Unregister an Alert
removed alert |
removeCluster | public void removeCluster(String clusterId)(Code) | | Remove a cluster from the query. Will also clean the cluster out of the result sets.
|
toXml | public String toXml()(Code) | | Convert this QueryResultAdapter to an XML format. For most purposes,
this means giving a summary of the resident result set. For a complete
document describing the query, result set, alerts, etc., use method
toWholeXml().
|
updateClusters | public void updateClusters(Vector newClusters)(Code) | | Reconcile new cluster list with current list. Updates the Agg Query and the result sets
|
|
|