| java.lang.Object org.cougaar.logistics.plugin.inventory.InventoryModule org.cougaar.logistics.plugin.inventory.RefillComparator
RefillComparator | public class RefillComparator extends InventoryModule implements ComparatorModule(Code) | | The Refill Comparator Module is responsible for deciding whether to
rescind all previous refills and publish all new refills generated
by the total replan refill generator module or whether to
compare and merge the 'old' and 'new' refill tasks. The first
version will simply rescind all old refills and publish all new
refills.
Called by the Refill Generator with the new refills and old refills.
Publishes new Refill tasks and rescinds the old through the InventoryPlugin.
Also applies the new Refill tasks to the Inventory's BG.
|
Method Summary | |
public void | compareRefillProjections(ArrayList newRefillProjs, ArrayList oldRefillProjs, Inventory inv) Compares the old and new Refill Projection tasks.
Publishes any new Refill Projections and Rescinds any old Refill Projection Tasks.
For now this implementation rescinds ALL old Refill Projections
and publishes ALL new Refill Projection tasks. | public void | compareRefills(ArrayList newRefills, ArrayList oldRefills, Inventory inv) Compares the old and new Refill tasks.
Publishes any new Refills and Rescinds any old Refill Tasks.
For now this implementation rescinds ALL old Refills and publishes ALL
new Refill tasks. |
RefillComparator | public RefillComparator(InventoryManager imPlugin)(Code) | | Need to pass in the IM Plugin for now to get services
and util classes.
|
compareRefillProjections | public void compareRefillProjections(ArrayList newRefillProjs, ArrayList oldRefillProjs, Inventory inv)(Code) | | Compares the old and new Refill Projection tasks.
Publishes any new Refill Projections and Rescinds any old Refill Projection Tasks.
For now this implementation rescinds ALL old Refill Projections
and publishes ALL new Refill Projection tasks.
In the future a smart comparison will be done.
Right now this method is almost identical to compareRefills.
Parameters: newRefillProjs - The collection of newly generated Refill Projectionsfrom the RefillProjectionsGenerator Module Parameters: oldRefillProjs - The previously generated Refill Projection Tasks Parameters: inv - The Inventory the Refills Projections are refilling. |
compareRefills | public void compareRefills(ArrayList newRefills, ArrayList oldRefills, Inventory inv)(Code) | | Compares the old and new Refill tasks.
Publishes any new Refills and Rescinds any old Refill Tasks.
For now this implementation rescinds ALL old Refills and publishes ALL
new Refill tasks. In the future a smart comparison will be done.
Parameters: newRefills - The collection of newly generated Refills from theRefillGeneratorModule Parameters: oldRefills - The previously generated Refill Tasks Parameters: inv - The Inventory the Refills are refilling. |
|
|