doPacking(ArrayList tasks, Comparator sortfun, PreferenceAggregator prefagg, AllocationResultDistributor ard) doPacking - packs specified set of supply tasks.
Assumes that it's called within an open/close transaction.
Parameters: tasks - ArrayList with the tasks which should be packed Parameters: sortfun - BinaryPredicate to be used in sorting the tasks Parameters: prefagg - PreferenceAggregator for setting the start/end times on thetransport tasks. Parameters: ard - AllocationResultDistributor to be used in distributing allocation resultsfor the transport task amount the initial supply tasks.
getAllocationResultDistributor() getAllocationResultDistributor - returns the AllocationResultDistributor be
used in distributing allocation result for the transport task among the initial
supply tasks.
processChangedTasks(Enumeration changedTasks) processChangedTasks - handle changed supply tasks
Called within GenericPlugin.execute.
Rescind current PlanElement and reprocess tasks.
Parameters: changedTasks - Enumeration of changed ammo supply tasks.
public void
processNewTasks(Enumeration newTasks) processNewTasks - handle new ammo supply tasks
Called within GenericPlugin.execute.
public void
processRemovedTasks(Enumeration removedTasks) processRemovedTasks - handle removed supply tasks
Called within GenericPlugin.execute.
doPacking - packs specified set of supply tasks.
Assumes that it's called within an open/close transaction.
Parameters: tasks - ArrayList with the tasks which should be packed Parameters: sortfun - BinaryPredicate to be used in sorting the tasks Parameters: prefagg - PreferenceAggregator for setting the start/end times on thetransport tasks. Parameters: ard - AllocationResultDistributor to be used in distributing allocation resultsfor the transport task amount the initial supply tasks. *
getAllocationResultDistributor - returns the AllocationResultDistributor be
used in distributing allocation result for the transport task among the initial
supply tasks. Defaults to
ProportionalDistributor.DEFAULT_PROPORTIONAL_DISTRIBUTOR;
AllocationResultDistributor
getPreferenceAggregator - returns PreferenceAggregator for setting the
start/end times on the transport tasks. Defaults to DefaultPreferenceAggregator.
PreferenceAggregator
processChangedTasks - handle changed supply tasks
Called within GenericPlugin.execute.
Rescind current PlanElement and reprocess tasks.
Parameters: changedTasks - Enumeration of changed ammo supply tasks. Ignored.