| java.lang.Object org.cougaar.lib.util.UTILAggregate
UTILAggregate | public class UTILAggregate (Code) | | This class contains utility functions for creating
Aggregations.
|
Method Summary | |
public List | makeAggregation(UTILPlugin creator, PlanningFactory ldmf, Plan realityPlan, Vector parentTasks, Verb whatVerb, Vector prepPhrases, Vector directObjects, Vector preferences, MessageAddress sourceClusterID, AspectValue[] aspectValues, double confidence) Creates an Aggregation for every parent task. | public List | makeAggregation(UTILPlugin creator, PlanningFactory ldmf, Plan realityPlan, Vector parentTasks, Verb whatVerb, Vector prepPhrases, Vector directObjects, Vector preferences, MessageAddress sourceClusterID, Map taskToAspectValues, double confidence) Creates an Aggregation for every parent task.
Note that the direct object of the MPTask will usually contain an asset group
whose members are the direct objects of the parents. | public Aggregation | makeFailedAggregation(UTILPlugin creator, PlanningFactory ldmf, Task t) Creates a failed Aggregation. | public NewMPTask | makeMPSubTask(PlanningFactory ldmf, Plan plan, Enumeration parentTasks, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source) Create an MPTask with an enumeration of parent tasks. |
UTILAggregate | public UTILAggregate(Logger log)(Code) | | Set the logger -- may be misleading though
Parameters: log - logger to use |
makeAggregation | public List makeAggregation(UTILPlugin creator, PlanningFactory ldmf, Plan realityPlan, Vector parentTasks, Verb whatVerb, Vector prepPhrases, Vector directObjects, Vector preferences, MessageAddress sourceClusterID, AspectValue[] aspectValues, double confidence)(Code) | | Creates an Aggregation for every parent task.
Parameters: ldmf - the PlanningFactory Parameters: parentTasks - parent tasks MPTask representing composition |
makeAggregation | public List makeAggregation(UTILPlugin creator, PlanningFactory ldmf, Plan realityPlan, Vector parentTasks, Verb whatVerb, Vector prepPhrases, Vector directObjects, Vector preferences, MessageAddress sourceClusterID, Map taskToAspectValues, double confidence)(Code) | | Creates an Aggregation for every parent task.
Note that the direct object of the MPTask will usually contain an asset group
whose members are the direct objects of the parents.
If one wishes to rescind a parent task, both the list of parents on the MPTask
and the direct object should be repaired.
By default does not propagate rescinds past an aggregation.
Parameters: creator - the plugin that created the aggregations, told when there is a failure Parameters: ldmf - the PlanningFactory Parameters: realityPlan - the plan the plan elements are part of Parameters: parentTasks - parent tasks Parameters: whatVerb - the verb to give the MPTask Parameters: prepPhrases - preps to attach to the MPTask Parameters: directObjects - the direct objects of the parent tasks (usually) that willbe put into an asset group, which will be the direct object of the MPTask Parameters: preferences - the preferences for the MPTask Parameters: sourceClusterID - which cluster is creating these things Parameters: taskToAspectValues - maps task to an array of AspectValues Parameters: confidence - what confidence to set the on the allocation results of the aggregations List of items to publish, which will include the MPTask representing composition, all the compositions, and the aggregation plan elements |
makeFailedAggregation | public Aggregation makeFailedAggregation(UTILPlugin creator, PlanningFactory ldmf, Task t)(Code) | | Creates a failed Aggregation.
Sets the estimated allocation result of the plan element to an
empty failed alloc result.
Parameters: ldmf - PlanningFactory Parameters: t - task Aggregation |
makeMPSubTask | public NewMPTask makeMPSubTask(PlanningFactory ldmf, Plan plan, Enumeration parentTasks, Verb verb, Enumeration prepphrases, Asset obj, Enumeration preferences, byte priority, MessageAddress source)(Code) | | Create an MPTask with an enumeration of parent tasks.
Parameters: ldmf - the PlanningFactory Parameters: source - the cluster originating the task Parameters: plan - the log plan Parameters: parentTasks - parent tasks Parameters: verb - the verb Parameters: prepphrases - PrepositionalPhrases Parameters: obj - the direct object NewMPTask |
|
|