| java.lang.Object org.cougaar.planning.plugin.util.PluginHelper org.cougaar.logistics.plugin.inventory.TaskUtils
Method Summary | |
public double | calculateDemand(Task t, long minStart, long maxEnd) | public double | calculateFilled(Task t, long minStart, long maxEnd) | public void | changeDatePrefs(NewTask task, long start, long end, InventoryManager inventoryPlugin, LogisticsInventoryPG invPG) | public Task | changeTask(Task prev_task, Task new_task) Change the prev task's preferences to the new tasks preferences if they are different.
Parameters: prev_task - previously published task. Parameters: new_task - already defined to have the same taskKey as task a. | public double | convertResultsToDailyRate(Task task, double demandRate) | public NewTask | copySupplyTask(Task origTask, long start, long end, LogisticsInventoryPG invPG, InventoryManager inventoryPlugin) | public static Preference | createDemandRatePreference(PlanningFactory rf, Rate rate) | public Preference | createTimePreference(long bestDay, long early, long end, int aspectType, MessageAddress clusterId, PlanningFactory planningFactory, LogisticsInventoryPG thePG) Create a Time Preference for a Refill Task or a Demand Task
Use a Piecewise Linear Scoring Function. | public static Rate | getARAspectRate(AllocationResult ar) | public double | getActualDemand(Task task, long startTime, long endTime, long minStart) | public static Object | getCustomer(Task task) | public Collection | getDailyQuantities(Task task) | public double | getDailyQuantity(Task task) | public double | getDailyQuantity(Task task, long time) | public double | getDailyQuantity(Task task, long start, long end) | public static double | getDailyQuantity(Rate r) | public double | getDouble(Scalar measure) Given a Scalar, return a double value representing
Gallons for Volume,
Eaches for Count and
Short Tons for Mass. | public double | getGrantedQuantity(Task t) | public static double | getPreference(Task t, int aspect_type) return the preference of the given aspect type. | public static double | getQuantity(Task task) | public static double | getQuantity(AllocationResult ar) | public double | getQuantity(Task task, AllocationResult ar) | public double | getQuantity(Task task, AllocationResult ar, long time_spanned) | public Rate | getRate(Task task) | public Rate | getRate(Task task, long time) | public Rate | getRate(Task task, long start, long end) | public Collection | getReportedDailyQuantities(Task task) | public Collection | getReportedDailyQuantities(Task task, AllocationResult ar) | public long | getReportedEndTime(Task task) | public long | getReportedStartTime(Task task) | public String | getTaskItemName(Task task) | public TimeUtils | getTimeUtils() | public double | getTotalQuantity(Task task) | public double | getTotalQuantity(Task task, long startTime, long endTime) | public double | getTotalQuantity(Task task, double demandRate, long startTime, long endTime) | public static Collection | getUnallocatedTasks(Collection tasks, Verb verb) | public boolean | isActualShortfall(Task t, boolean includeTemps) | public boolean | isDirectObjectOfType(Task t, String type) | public boolean | isFlowRate(Task task) | public static boolean | isInternal(Task task) | public boolean | isLevel2(Task t) | public boolean | isMyDemandForecastProjection(Task task, String orgName) | public static boolean | isMyInventoryProjection(Task task, String myOrgName) | public static boolean | isMyNonRefillTask(Task task, String myOrgName) | public static boolean | isMyRefillTask(Task task, String myOrgName) | public boolean | isProjFailure(Task t, long minStart, boolean includeTemps) | public static boolean | isProjection(Task t) | public boolean | isReadyForTransport(Task task) | public static boolean | isSupply(Task t) | public static boolean | isTaskOfType(Task t, String type) | public static boolean | isTaskOfTypeString(Task t, String type) | public Schedule | newObjectSchedule(Collection tasks) | public Collection | splitProjection(Task task, List howToSplit, InventoryManager invPlugin) | public String | taskDesc(Task task) |
calculateDemand | public double calculateDemand(Task t, long minStart, long maxEnd)(Code) | | |
calculateFilled | public double calculateFilled(Task t, long minStart, long maxEnd)(Code) | | |
changeTask | public Task changeTask(Task prev_task, Task new_task)(Code) | | Change the prev task's preferences to the new tasks preferences if they are different.
Parameters: prev_task - previously published task. Parameters: new_task - already defined to have the same taskKey as task a. null if the two tasks are the same,or returns task a modified for a publishChange. |
convertResultsToDailyRate | public double convertResultsToDailyRate(Task task, double demandRate)(Code) | | |
createTimePreference | public Preference createTimePreference(long bestDay, long early, long end, int aspectType, MessageAddress clusterId, PlanningFactory planningFactory, LogisticsInventoryPG thePG)(Code) | | Create a Time Preference for a Refill Task or a Demand Task
Use a Piecewise Linear Scoring Function.
For details see the IM SDD.
Parameters: bestDay - The time you want this preference to represent Parameters: early - The earliest time this preference can have Parameters: end - The last time this preference can have (such as Oplan end time) Parameters: aspectType - The AspectType of the preference- should be start_time or end_time Parameters: clusterId - Agent cluster ID Parameters: planningFactory - Planning factory from plugin Parameters: thePG - InventoryPG for the item maintained by a refill task Preference The new Time Preference |
getActualDemand | public double getActualDemand(Task task, long startTime, long endTime, long minStart)(Code) | | |
getCustomer | public static Object getCustomer(Task task)(Code) | | Parameters: task - Value of the FOR Preposition if available, else null |
getDailyQuantity | public double getDailyQuantity(Task task)(Code) | | |
getDailyQuantity | public double getDailyQuantity(Task task, long time)(Code) | | |
getDailyQuantity | public double getDailyQuantity(Task task, long start, long end)(Code) | | |
getDailyQuantity | public static double getDailyQuantity(Rate r)(Code) | | |
getDouble | public double getDouble(Scalar measure)(Code) | | Given a Scalar, return a double value representing
Gallons for Volume,
Eaches for Count and
Short Tons for Mass.
|
getGrantedQuantity | public double getGrantedQuantity(Task t)(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) | | |
getReportedEndTime | public long getReportedEndTime(Task task)(Code) | | |
getReportedStartTime | public long getReportedStartTime(Task task)(Code) | | |
getTotalQuantity | public double getTotalQuantity(Task task)(Code) | | |
getTotalQuantity | public double getTotalQuantity(Task task, long startTime, long endTime)(Code) | | |
getTotalQuantity | public double getTotalQuantity(Task task, double demandRate, long startTime, long endTime)(Code) | | |
isActualShortfall | public boolean isActualShortfall(Task t, boolean includeTemps)(Code) | | |
isDirectObjectOfType | public boolean isDirectObjectOfType(Task t, String type)(Code) | | |
isFlowRate | public boolean isFlowRate(Task task)(Code) | | |
isInternal | public static boolean isInternal(Task task)(Code) | | Parameters: task - the task true if the task has an packer INTERNAL prep phrase |
isMyDemandForecastProjection | public boolean isMyDemandForecastProjection(Task task, String orgName)(Code) | | |
isMyInventoryProjection | public static boolean isMyInventoryProjection(Task task, String myOrgName)(Code) | | |
isMyNonRefillTask | public static boolean isMyNonRefillTask(Task task, String myOrgName)(Code) | | |
isMyRefillTask | public static boolean isMyRefillTask(Task task, String myOrgName)(Code) | | |
isProjFailure | public boolean isProjFailure(Task t, long minStart, boolean includeTemps)(Code) | | |
isProjection | public static boolean isProjection(Task t)(Code) | | |
isReadyForTransport | public boolean isReadyForTransport(Task task)(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'. |
isTaskOfTypeString | public static boolean isTaskOfTypeString(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 string with nomeclature equal to 'type'. |
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)
|
|
|