| org.cougaar.planning.ldm.plan.Workflow
All known Subclasses: org.cougaar.planning.ldm.plan.WorkflowImpl,
Workflow | public interface Workflow extends UniqueObject,Annotatable(Code) | | Workflow Interface
A Workflow is the result of a Task expansion consisting primarily
of a partially ordered set of Task instances. There are many sorts
of Workflow implementations possible, ranging from a strictly-ordered
vector of subtasks, to an unordered Bag, to a set of DAGs, or even
a complex, temporally-ordered set.
|
aggregateAllocationResults | AllocationResult aggregateAllocationResults()(Code) | | Ask the workflow to compute an AllocationResult based on the
AllocationResults of the Workflow's sub Tasks. If the aggregate
AllocationResult is undefined (e.g. some of the sub Tasks have not yet
been allocated), computePenaltyValue should return null.
AllocationResult - the result of aggregating the AllocationResultsof the Workflow using the defined (or default) AllocationResultAggregator. See Also: org.cougaar.planning.ldm.plan.AllocationResultAggregator |
constraintViolation | boolean constraintViolation()(Code) | | Has a constraint been violated?
boolean |
getConstraints | Enumeration getConstraints()(Code) | | Returns an Enumeration which walks over
all Constraints that are members of
this workflow.
Enumeration myconstraints = myworkflow.getConstraints();
Enumeration{Constraint} |
getNextPendingConstraint | Constraint getNextPendingConstraint()(Code) | | Return constraint for which constraining event is defined and
constraining event is undefined or violated
|
getPairConstraints | Enumeration getPairConstraints(Task constrainedTask, Task constrainingTask)(Code) | | Returns and Enumeration which walks over
all Constraints that have a pair-wise
relationship with two passed tasks.
Enumeration myconstraints = myworkflow.getPairConstraints(mytask1, mytask2);
Parameters: constrainedTask - - Task that is constrained Parameters: constrainingTask - - Task that is constraining Enumeration{Constraint} |
getParentTask | Task getParentTask()(Code) | | Task parenttask = myworkflow.getParentTask();
Task Return the Task for which this Workflow is an expansion. |
getSubtaskResults | SubtaskResults getSubtaskResults()(Code) | | Get allocation results and change information for all subtasks
corresponding to the most recently computed received allocation
result of the corresponding expansion. The returned List contains
a SubTaskResult for each subtask. Each of the SubTaskResult
objects contains:
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 |
getTaskConstraints | Enumeration getTaskConstraints(Task task)(Code) | | Returns an Enumeration which walks over
all Constraints that have a relationship
to the passed Task.
Enumeration myconstraints = myworkflow.getTaskConstraints(mytask);
Parameters: task - - The task you are checking for Constraints. Enumeration{Constraint} |
getTasks | Enumeration getTasks()(Code) | | Return an Enumeration which walks over all tasks
which are members of this Workflow.
Enumeration mytasks = myworkflow.getTasks();
Enumeration{Task} |
getViolatedConstraints | Enumeration getViolatedConstraints()(Code) | | Get the constraints that were violated.
Enumeration{Constraint} |
isPropagatingToSubtasks | boolean isPropagatingToSubtasks()(Code) | | Should subtasks be rescinded by the infrastructure when the
expansion this workflow is attached to is rescinded?
Defaults to true.
Set to false (meaning the Plugin is responsible for rescinding or
reattaching the workflow and its subtasks to an expansion and parent task)
by NewWorkflow.setIsPropagatingToSubtasks(isProp);
boolean |
|
|