| java.lang.Object org.cougaar.logistics.plugin.demand.DemandGeneratorModule org.cougaar.logistics.plugin.demand.DemandTaskGenerator org.cougaar.logistics.plugin.demand.DemandGeneratorInputModule
DemandGeneratorInputModule | public class DemandGeneratorInputModule extends DemandTaskGenerator (Code) | | The DemandGeneratorInputModule generates demand from a data file input
Expected Input File Format is comma seperated value with the following
fields in the following order:
timestamp(long), org(String), maintained asset id (String),
item id (String), quantity (double)
note: Any String field that contains a comma will be expected in quotes (")
See Also: DemandGeneratorPlugin See Also: DemandGeneratorModule See Also: DemandGeneratorOutputModule |
Method Summary | |
protected NewTask | createNewDemandTask(Task parentTask, Asset consumed, long start, long end, double qty, GeolocLocationImpl loc, String org, String type, MaintainedItem item) | public List | generateDemandTasks(long start, long duration, Collection relevantProjectSupplys, Collection relevantSupplys) | protected Task | getGenerateProjectionsTask(MaintainedItem item, String type) |
DemandGeneratorInputModule | public DemandGeneratorInputModule(DemandGeneratorPlugin demandGeneratorPlugin)(Code) | | Constructor defers to parent class
Parameters: demandGeneratorPlugin - DemandGeneratorPlugin for which this module iscreated |
createNewDemandTask | protected NewTask createNewDemandTask(Task parentTask, Asset consumed, long start, long end, double qty, GeolocLocationImpl loc, String org, String type, MaintainedItem item)(Code) | | Create new demand task based on demand file entries
Parameters: parentTask - Parent of task to be created Parameters: consumed - The asset consumed Parameters: start - The start preference Parameters: end - The end preference Parameters: qty - The qty preference Parameters: loc - The GeolocLocation for delivery Parameters: org - The requesting org Parameters: type - The supply type Parameters: item - The maintained item The newly created SUPPLY task |
generateDemandTasks | public List generateDemandTasks(long start, long duration, Collection relevantProjectSupplys, Collection relevantSupplys)(Code) | | Generate demand tasks from file demand over the given time period
Parameters: start - start time of period over which to collect data and create demand Parameters: duration - duration of period over which to collect data and create demand Parameters: relevantProjectSupplys - NOT USED Parameters: relevantSupplys - |
getGenerateProjectionsTask | protected Task getGenerateProjectionsTask(MaintainedItem item, String type)(Code) | | Retreive the GenerateProjections task for a given (maintained) item
and supply type
Parameters: item - item being maintained Parameters: type - supply type The GenerateProjections task for the given item/supply type |
Methods inherited from org.cougaar.logistics.plugin.demand.DemandTaskGenerator | protected boolean addToAndPublishExpansion(Task parent, Collection subtasks)(Code)(Java Doc) protected void checkForOrphans(Task gpTask)(Code)(Java Doc) protected Vector createDemandPreferences(long start, long end, double qty)(Code)(Java Doc) protected NewTask createNewDemandTask(Task parentTask, Task projTask, Asset consumed, long start, long end, double qty)(Code)(Java Doc) protected Preference createTimeScoringFunctionPref(long bestTime, int aspectType)(Code)(Java Doc) protected double deriveTotalQty(long bucketStart, long bucketEnd, Collection projTasks)(Code)(Java Doc) public List generateDemandTasks(long start, long duration, Collection relevantProjectSupplys, Collection relevantSupplys)(Code)(Java Doc) protected double getBaseUnitPerSecond(Rate rate)(Code)(Java Doc) protected void regenerateProjectionHash(Collection tasks)(Code)(Java Doc) protected void regenerateSupplyHash(Collection tasks)(Code)(Java Doc) protected void regenerateTaskHash(Collection tasks, HashMap hash)(Code)(Java Doc)
|
|
|