| java.lang.Object org.cougaar.glm.plugins.BasicProcessor org.cougaar.glm.plugins.inventory.InventoryProcessor org.cougaar.glm.plugins.inventory.SupplyExpander
SupplyExpander | public class SupplyExpander extends InventoryProcessor (Code) | | SupplyExpander expands supply tasks into withdraw tasks and if needed
Transport and Load Tasks. The SupplyExpander also updates the allocation
result whenever one of the subtasks are changed.
It runs for new(added) and changed Supply tasks.
This processor should be included IFF inventory is being handled in this cluster.
|
Inner Class :static class SupplyExpansionTaskPredicate implements UnaryPredicate | |
Inner Class :static class ProjectionExpansionTaskPredicate implements UnaryPredicate | |
Inner Class :static class ProjectionExpansionPredicate implements UnaryPredicate | |
Inner Class :static class SupplyExpansionPredicate implements UnaryPredicate | |
LOAD_TIME | final public static long LOAD_TIME(Code) | | |
PROJECTWITHDRAWVERB | final public static Verb PROJECTWITHDRAWVERB(Code) | | |
TRANSPORTVERB | final public static Verb TRANSPORTVERB(Code) | | |
TRANSPORT_TIME | final public static long TRANSPORT_TIME(Code) | | |
WITHDRAWVERB | final public static Verb WITHDRAWVERB(Code) | | |
addLoad | protected boolean addLoad(Code) | | |
addTransport | protected boolean addTransport(Code) | | |
SupplyExpander | public SupplyExpander(InventoryPlugin plugin, Organization org, String type)(Code) | | Constructor takes this processor's plugin, organization and the type of
supply tasks that shall be handled.
|
addEndTimePref | protected void addEndTimePref(NewTask task, long end)(Code) | | Creates a start and end preference and attaches them to a task *
|
addStartTimePref | protected void addStartTimePref(NewTask task, long start)(Code) | | |
createProjectSupplyWithdrawTask | protected NewTask createProjectSupplyWithdrawTask(Task parent_task)(Code) | | |
createSupplyWithdrawTask | protected NewTask createSupplyWithdrawTask(Task parent_task)(Code) | | |
createWithdrawTask | protected NewTask createWithdrawTask(Task parent_task)(Code) | | creates a Withdraw task from a Supply task *
|
expandSupplyTask | protected void expandSupplyTask(Task parentTask)(Code) | | Expands a Supply task into a withdraw task *
|
handleExpandableTasks | protected void handleExpandableTasks(Enumeration tasks)(Code) | | Expands an enumeration of Supply tasks *
|
handleExpansionChanges | protected void handleExpansionChanges(Enumeration expansions)(Code) | | Handle changes to our expansions of Supply tasks. Basically, a
failure causes all unfailed subtasks to be rescinded. The will
get recreated if the incoming supply task ever gets revived.
|
update | public void update()(Code) | | This method is called everytime a subscription has changed.
|
Methods inherited from org.cougaar.glm.plugins.BasicProcessor | public String arDesc(AllocationResult ar)(Code)(Java Doc) public AllocationResult buildExpansionResult(Expansion expansion)(Code)(Java Doc) public AllocationResult buildExpansionResult(Expansion expansion, boolean like_tasks)(Code)(Java Doc) public NewTask buildNewTask(Task input_task, String output_verb, Asset direct_object)(Code)(Java Doc) public Task buildTask(Task input_task, String output_verb, Asset direct_object, PrepositionalPhrase pp)(Code)(Java Doc) public Task buildTask(Task input_task, String output_verb, Asset direct_object, Vector preposition_phrases)(Code)(Java Doc) public Task buildTask(Task input_task, String output_verb, Asset direct_object, Vector preposition_phrases, Preference pref)(Code)(Java Doc) public Task buildTask(Task input_task, String output_verb, Asset direct_object, Vector preposition_phrases, Enumeration prefs)(Code)(Java Doc) public Task buildTask(Task input_task, String output_verb, Asset direct_object, Enumeration prefs)(Code)(Java Doc) public Workflow buildWorkflow(Task parent, Vector subtasks)(Code)(Java Doc) public Workflow buildWorkflow(Task parent, Task task)(Code)(Java Doc) protected Task changeTask(Task prev_task, Task new_task)(Code)(Java Doc) public Preference createDateAfterPreference(int aspect, long value)(Code)(Java Doc) public Preference createDateBeforePreference(int aspect, long value)(Code)(Java Doc) public AllocationResult createEstimatedAllocationResult(Task t)(Code)(Java Doc) public Preference createPreference(int aspect, double value)(Code)(Java Doc) public Preference createQuantityPreference(int aspect, double value)(Code)(Java Doc) protected Enumeration diffProjections(Schedule published_schedule, Schedule newtask_schedule)(Code)(Java Doc) public long getAlpTime()(Code)(Java Doc) public boolean isSubscriptionChanged(IncrementalSubscription sub)(Code)(Java Doc) public static Schedule newObjectSchedule(Enumeration tasks)(Code)(Java Doc) public PrepositionalPhrase newPrepositionalPhrase(String preposition, Object io)(Code)(Java Doc) public PrepositionalPhrase newPrepositionalPhrase(String preposition)(Code)(Java Doc) public NewWorkflow newWorkflow(Task parent)(Code)(Java Doc) protected String printProjection(String msg, Task task)(Code)(Java Doc) protected void publishAddTask(Task task)(Code)(Java Doc) protected boolean publishAllocation(Task task, Asset asset, org.cougaar.planning.ldm.plan.Role role)(Code)(Java Doc) protected boolean publishAllocation(Task task, Asset asset, Role role, AllocationResult ar)(Code)(Java Doc) protected boolean publishAllocation(Task task, Asset asset, Role role, AllocationResult ar, boolean needAR)(Code)(Java Doc) protected void publishAsset(Asset asset)(Code)(Java Doc) protected void publishChangeAsset(Asset asset)(Code)(Java Doc) protected void publishChangeTask(Task task)(Code)(Java Doc) protected void publishExpansion(Task parent, Vector tasks)(Code)(Java Doc) protected void publishFailedDisposition(Task task, AllocationResult ar)(Code)(Java Doc) protected void publishRemoveAllocation(Allocation alloc)(Code)(Java Doc) protected void publishRemoveAsset(Asset asset)(Code)(Java Doc) protected void publishRemoveExpansion(Expansion exp)(Code)(Java Doc) protected void publishRemoveTask(Task task)(Code)(Java Doc) public String qseString(QuantityScheduleElement qse)(Code)(Java Doc) protected void setEndTimePreference(NewTask task, long end)(Code)(Java Doc) protected void setStartTimePreference(NewTask task, long start)(Code)(Java Doc) protected IncrementalSubscription subscribe(UnaryPredicate predicate)(Code)(Java Doc) protected String taskKey(Task t)(Code)(Java Doc) abstract public void update()(Code)(Java Doc) public void updateAllocationResult(PlanElement pe)(Code)(Java Doc) protected void updateExpansionResult(Enumeration planelements)(Code)(Java Doc)
|
|
|