aggregateAllocationResults(List changedSubtaskUIDs) This variant is used by the infrastructure
(ReceiveNotificationLP) to record the list of changed subtasks
contributing to the new allocation result.
getNextPendingConstraint() Returns first constraint for which the constraining event is
defined and constrained event is undefined or violated with
respect to constraining event.
getSubtaskResults() get the latest copy of the allocationresults for each subtask.
Information is stored in a List which contains a SubTaskResult for each subtask.
setConstraints(Enumeration enumofConstraints) Note any previous values will be dropped.
Parameters: enumofConstraints - setConstraints allows you to set the Enumerationof Constraints of a Workflow.
Returns first constraint for which the constraining event is
defined and constrained event is undefined or violated with
respect to constraining event.
Parameters: constrainedTask - - the task being constrained Parameters: constrainingTask - - the task that is constraining another task Enumeration{Constraints} - Constraints that are related to both tasks
get the latest copy of the allocationresults for each subtask.
Information is stored in a List which contains a SubTaskResult for each subtask.
Each of the SubTaskResult objects contain the following information:
Task - the subtask, boolean - whether the result changed,
AllocationResult - the result used by the aggregator for this sub-task.
The boolean indicates whether the AllocationResult changed since the
last time the collection was cleared by the plugin (which should be
the last time the plugin looked at the list).
List of SubTaskResultObjects one for each subtask
Get an Enumeration of all subtasks. The subtasks of a workflow is
volatile and subject to change at any time (due to rescind of the
expansion) to guard against such volatility, the use of the
returned Enumeration should be protected by synchronizing on the
workflow. E.g.:
synchronized (wf) {
Enumeration en = wf.getTasks();
// Use the en
}
The code using the enumeration should be brief to avoid locking the
workflow for an extended period of time.
Enumeration{Task} Enumerate over our subtasks.
sets a specific compute algorithm to use while computing the aggregated
allocation results of the workflow. If this method is not called, the allocationresult
will be aggregated using the default AllocationResultAggregator (Sum).
Parameters: aragg - The AllocationResultAggregator to use. See Also:org.cougaar.planning.ldm.plan.AllocationResultAggregator
Note any previous values will be dropped.
Parameters: enumofConstraints - setConstraints allows you to set the Enumerationof Constraints of a Workflow.
setIsPropagatingToSubtasks
public void setIsPropagatingToSubtasks(boolean isProp)(Code)