| java.lang.Object org.cougaar.planning.plugin.util.ExpanderHelper
ExpanderHelper | public class ExpanderHelper (Code) | | Provides utility methods for building Expander Plugins.
|
Method Summary | |
public static AllocationResult | createEstimatedAllocationResult(Task t, PlanningFactory ldmf) | public static AllocationResult | createEstimatedAllocationResult(Task t, PlanningFactory ldmf, double confrating) | public static String | getOfType(Task t, String p) | public static boolean | isOfType(Task t, String p, String typeid) Checks if the Task is of specified OFTYPE. | public static void | publishAddExpansion(Subscriber sub, PlanElement exp) Publish a new Expansion and its subtasks. | public static void | updateAllocationResult(IncrementalSubscription sub) Takes a subscription, gets the changed list and updates the changedList. | public static Expansion | wireExpansion(Task parent, NewTask subTask, PlanningFactory ldmf) Takes "a" subtask, generates a workflow for that subtask. | public static Expansion | wireExpansion(Vector subTasks, PlanningFactory ldmf, Task parentTask, NewWorkflow wf) Takes a Vector of subtasks, generates a workflow for those subtasks. |
isOfType | public static boolean isOfType(Task t, String p, String typeid)(Code) | | Checks if the Task is of specified OFTYPE.
|
publishAddExpansion | public static void publishAddExpansion(Subscriber sub, PlanElement exp)(Code) | | Publish a new Expansion and its subtasks.
e.g.
publishAddExpansion(getSubscriber(), myExpansion);
|
updateAllocationResult | public static void updateAllocationResult(IncrementalSubscription sub)(Code) | | Takes a subscription, gets the changed list and updates the changedList.
|
wireExpansion | public static Expansion wireExpansion(Task parent, NewTask subTask, PlanningFactory ldmf)(Code) | | Takes "a" subtask, generates a workflow for that subtask. This newly created
Expansion is wired properly and returned.
|
wireExpansion | public static Expansion wireExpansion(Vector subTasks, PlanningFactory ldmf, Task parentTask, NewWorkflow wf)(Code) | | Takes a Vector of subtasks, generates a workflow for those subtasks. This newly created
Expansion is wired properly and returned.
|
|
|