| java.lang.Object org.cougaar.lib.util.UTILExpand
UTILExpand | public class UTILExpand (Code) | | This class contains utility functions related to
subtasks and expansions.
|
Method Summary | |
public void | addAuxiliaryQuery(Task parentTask, NewTask subTask) Checks the parentTask for AuxiliaryQuery. | public NewTask | cloneTask(PlanningFactory ldmf, Task taskToClone) Clone a task. | public Enumeration | createDividedPreferences(PlanningFactory ldmf, Task t, Date begin, Date end, Logger logger) | public void | handleTask(PlanningFactory ldmf, PluginDelegate plugin, String pluginName, boolean wantConfidence, Task t, List subtasks) This method Expands the given Task. | public void | handleTask(PlanningFactory ldmf, BlackboardService blackboard, String pluginName, boolean wantConfidence, Task t, List subtasks) | public Expansion | handleTaskPrime(PlanningFactory ldmf, PluginDelegate plugin, String pluginName, boolean wantConfidence, boolean myExtraOutput, Task t, List subtasks) | public Expansion | handleTaskPrime(PlanningFactory ldmf, BlackboardService blackboard, String pluginName, boolean wantConfidence, boolean myExtraOutput, Task t, List subtasks) | public Expansion | makeExpansion(PlanningFactory ldmf, Workflow wf) Creates the Expansion. | public Expansion | makeExpansionWithConfidence(PlanningFactory ldmf, Workflow wf) Creates the Expansion. | public Expansion | makeFailedExpansion(UTILPlugin creator, PlanningFactory ldmf, Task t) Creates a failed Expansion. | public NewTask | makeSubTask(PlanningFactory ldmf, Plan plan, Task parent, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source) Create a subtask. | public NewTask | makeSubTask(PlanningFactory ldmf, Plan plan, UID parent_uid, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source) Create a subtask. | public NewTask | makeSubTask(PlanningFactory ldmf, Task parent, Asset obj, MessageAddress source) Create a subtask, using fields from parent task
For when you just want a copy of the parent task with
a different direct object. | public Workflow | makeWorkflow(PlanningFactory ldmf, List subtasks, Task parent) | public Workflow | makeWorkflow(PlanningFactory ldmf, List subtasks, AllocationResultAggregator ara, Task parent) Create a new Workflow from the subtask(s)
Parameters: ldmf - the PlanningFactory Parameters: subtasks - a vector of subtasks Parameters: ara - subclass of AllocationResultAggregator, which allows clients toredefine how the allocation results of subtasks are rolled upinto an aggregate result. | protected String | print(AspectValue av, Preference pref) | protected String | print(Preference pref) | protected String | printEndTime(Task t, AspectValue av) | protected String | printEndTime(Task t) | public void | setAlloc(UTILAllocate alloc) | public void | setPropagateRescinds(boolean p) | public void | showExpansion(Expansion exp) | public void | showPlanElement(Task subTask) | protected void | showPlanElement(Task subTask, int taskNum) | public void | showPreferences(Task t, AspectValue[] aspects) | public void | showPreferences(Task t) |
addAuxiliaryQuery | public void addAuxiliaryQuery(Task parentTask, NewTask subTask)(Code) | | Checks the parentTask for AuxiliaryQuery. If a query exists,
then propagate the query to the subtask. Since not all subtasks
need to propagate the query, this is not automatically part of
the makeSubTask. Only call this when needed.
Parameters: parentTask - Parameters: subTask - |
handleTask | public void handleTask(PlanningFactory ldmf, PluginDelegate plugin, String pluginName, boolean wantConfidence, Task t, List subtasks)(Code) | | This method Expands the given Task.
Parameters: ldmf - the LDMFactory Parameters: plugin - the PluginDelegate Parameters: pluginName - string representation of the plugin's name Parameters: t - the task to be expanded. Parameters: subtasks - the expanded subtasks |
makeExpansion | public Expansion makeExpansion(PlanningFactory ldmf, Workflow wf)(Code) | | Creates the Expansion.
Sets the estimated allocation result of the plan element to NULL.
Parameters: ldmf - PlanningFactory Parameters: wf - a workflow Expansion |
makeExpansionWithConfidence | public Expansion makeExpansionWithConfidence(PlanningFactory ldmf, Workflow wf)(Code) | | Creates the Expansion.
Estimated allocation result of the expansion is set to the values of the
best values of the task, with a confidence of MEDIUM_CONFIDENCE (0.5).
Parameters: ldmf - PlanningFactory Parameters: wf - a workflow Expansion See Also: UTILAllocate.MEDIUM_CONFIDENCE |
makeFailedExpansion | public Expansion makeFailedExpansion(UTILPlugin creator, PlanningFactory ldmf, Task t)(Code) | | Creates a failed Expansion.
Sets the estimated allocation result of the plan element to an
empty failed alloc result.
Parameters: ldmf - PlanningFactory Parameters: t - task to make a failed expansion for Expansion |
makeSubTask | public NewTask makeSubTask(PlanningFactory ldmf, Plan plan, Task parent, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source)(Code) | | Create a subtask.
For when you want to be able to set all the fields of the
new task.
If you just want to set a new direct object for the task,
see the other makeSubTask.
Parameters: ldmf - the PlanningFactory Parameters: plan - the log plan Parameters: parent - the parent task Parameters: verb - the verb Parameters: prepphrases - PrepositionalPhrases Parameters: obj - the direct object Parameters: preferences - for sub task Parameters: priority - of task Parameters: source - the cluster originating the task NewTask |
makeSubTask | public NewTask makeSubTask(PlanningFactory ldmf, Plan plan, UID parent_uid, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source)(Code) | | Create a subtask.
For when you want to be able to set all the fields of the
new task.
If you just want to set a new direct object for the task,
see the other makeSubTask.
Parameters: ldmf - the LdmFactory Parameters: plan - the log plan Parameters: parent_uid - the parent task UID Parameters: verb - the verb Parameters: prepphrases - the PrepositionalPhrases Parameters: obj - the direct object Parameters: preferences - for sub task Parameters: priority - of task Parameters: source - the cluster originating the task NewTask |
makeSubTask | public NewTask makeSubTask(PlanningFactory ldmf, Task parent, Asset obj, MessageAddress source)(Code) | | Create a subtask, using fields from parent task
For when you just want a copy of the parent task with
a different direct object.
Parameters: ldmf - the PlanningFactory Parameters: parent - the parent task Parameters: obj - the direct object Parameters: source - the cluster originating the task NewTask |
makeWorkflow | public Workflow makeWorkflow(PlanningFactory ldmf, List subtasks, Task parent)(Code) | | Create a new Workflow from the subtask(s)
Parameters: ldmf - the LdmFactory Parameters: subtasks - a vector of subtasks Parameters: parent - task of this workflow expansion Workflow a workflow containing the subtasks |
setPropagateRescinds | public void setPropagateRescinds(boolean p)(Code) | | |
showPlanElement | public void showPlanElement(Task subTask)(Code) | | |
showPlanElement | protected void showPlanElement(Task subTask, int taskNum)(Code) | | |
showPreferences | public void showPreferences(Task t)(Code) | | |
|
|