| java.lang.Object org.cougaar.planning.plugin.util.PluginHelper org.cougaar.glm.plugins.TaskUtils
Method Summary | |
public static NewTask | addPrepositionalPhrase(NewTask task, PrepositionalPhrase pp) | public static String | arDesc(AllocationResult ar) | public static boolean | comparePreferences(Task a, Task b) Compare the preferences of two tasks return true if the tasks
have preferences for the same aspect types and if all
corresponding AspectValues are nearly equal. | public static Preference | createDemandMultiplierPreference(PlanningFactory rf, double mult) | public static Preference | createDemandRatePreference(PlanningFactory rf, Rate rate) | public static double | getDailyQuantity(Task task) | public static double | getDailyQuantity(Rate r) | public static NumberFormat | getDemandFormat() | public static String | getDirectObjectID(Task task) | public static double | getMultiplier(Task task) | public static String | getNameOfConsumedItem(Task task) | public static int | getNumericPriority(Task task) | public static double | getPreference(Task t, int aspect_type) return the preference of the given aspect type. | public static String | getPriority(Task task) | public static double | getQuantity(Task task) | public static double | getQuantity(AllocationResult ar) | public static Rate | getRate(Task task) | public static Date | getRefillDate(Task refillTask) | public static double | getRefillQuantity(Task refillTask) | public static long | getRefillTime(Task refillTask) | public static String | getTaskItemName(Task task) | public static double | getWithdrawQuantity(Task withdrawTask) | public static boolean | isDirectObjectOfType(Task t, String type) | public static boolean | isMyInventoryProjection(Task task, String myOrgName) | public static boolean | isMyRefillTask(Task task, String myOrgName) | public static boolean | isProjection(Task t) | public static boolean | isSupply(Task t) | public static boolean | isTaskOfType(Task t, String type) | public static boolean | isTaskPrepOfType(Task t, String type) | public static String | projectionDesc(Task task) | public static void | replacePrepositionalPhrase(NewTask task, PrepositionalPhrase pp) | public static String | shortTaskDesc(Task task) | public static String | taskDesc(Task task) |
MSEC_PER_DAY | final public static long MSEC_PER_DAY(Code) | | number of msec per day
|
comparePreferences | public static boolean comparePreferences(Task a, Task b)(Code) | | Compare the preferences of two tasks return true if the tasks
have preferences for the same aspect types and if all
corresponding AspectValues are nearly equal.
This needs to be fixed to be more efficient.
|
getDailyQuantity | public static double getDailyQuantity(Task task)(Code) | | |
getDailyQuantity | public static double getDailyQuantity(Rate r)(Code) | | |
getMultiplier | public static double getMultiplier(Task task)(Code) | | |
getNameOfConsumedItem | public static String getNameOfConsumedItem(Task task)(Code) | | |
getNumericPriority | public static int getNumericPriority(Task task)(Code) | | |
getPreference | public static double getPreference(Task t, int aspect_type)(Code) | | return the preference of the given aspect type. Returns null if
the task does not have the given aspect.
|
getQuantity | public static double getQuantity(Task task)(Code) | | |
getRefillQuantity | public static double getRefillQuantity(Task refillTask)(Code) | | |
getRefillTime | public static long getRefillTime(Task refillTask)(Code) | | |
getWithdrawQuantity | public static double getWithdrawQuantity(Task withdrawTask)(Code) | | |
isDirectObjectOfType | public static boolean isDirectObjectOfType(Task t, String type)(Code) | | |
isMyInventoryProjection | public static boolean isMyInventoryProjection(Task task, String myOrgName)(Code) | | |
isMyRefillTask | public static boolean isMyRefillTask(Task task, String myOrgName)(Code) | | |
isProjection | public static boolean isProjection(Task t)(Code) | | |
isSupply | public static boolean isSupply(Task t)(Code) | | |
isTaskOfType | public static boolean isTaskOfType(Task t, String type)(Code) | | Parameters: t - the task Parameters: type - type identification string true if the task's OFTYPE preposition's indirect object isan asset with nomeclature equal to 'type'. |
isTaskPrepOfType | public static boolean isTaskPrepOfType(Task t, String type)(Code) | | |
Methods inherited from org.cougaar.planning.plugin.util.PluginHelper | public static boolean checkChangeReports(Set reports, Class cls)(Code)(Java Doc) public static AllocationResult createEstimatedAllocationResult(Task t, PlanningFactory ldmf, double confrating, boolean success)(Code)(Java Doc) public static double getARAspectValue(AllocationResult ar, int type)(Code)(Java Doc) public static long getEndTime(Task task)(Code)(Java Doc) public static double getEndTime(AllocationResult ar)(Code)(Java Doc) public static AspectValue getPreferenceBest(Task task, int aspect_type)(Code)(Java Doc) public static double getPreferenceBestValue(Task task, int aspect_type)(Code)(Java Doc) public static long getStartTime(Task task)(Code)(Java Doc) public static double getStartTime(AllocationResult ar)(Code)(Java Doc) public static NewTask makeSubtask(Task task, PlanningFactory ldmf)(Code)(Java Doc) public static void publishAddExpansion(BlackboardService sub, Expansion exp)(Code)(Java Doc) public static void removeSubTask(BlackboardService sub, Task task)(Code)(Java Doc) public static void updateAllocationResult(IncrementalSubscription sub)(Code)(Java Doc) public static boolean updatePlanElement(PlanElement pe)(Code)(Java Doc) public static Aggregation wireAggregation(Task parent, NewMPTask mpTask, PlanningFactory ldmf, AllocationResult ar)(Code)(Java Doc) public static Collection wireAggregation(Collection parents, NewMPTask mpTask, PlanningFactory ldmf, double confrating, boolean success)(Code)(Java Doc) public static Expansion wireExpansion(Task parent, NewTask subTask, PlanningFactory ldmf)(Code)(Java Doc) public static Expansion wireExpansion(Task parent, NewTask subTask, PlanningFactory ldmf, AllocationResult ar)(Code)(Java Doc) public static void wireExpansion(Expansion exp, NewTask subTask)(Code)(Java Doc) public static Expansion wireExpansion(Task parentTask, Vector subTasks, PlanningFactory ldmf)(Code)(Java Doc) public static Expansion wireExpansion(Task parentTask, Vector subTasks, PlanningFactory ldmf, AllocationResult ar)(Code)(Java Doc)
|
|
|