| org.cougaar.glm.plugins.projection.GenerateDemandExpander org.cougaar.glm.plugins.projection.GenerateSupplyDemandExpander
GenerateSupplyDemandExpander | public class GenerateSupplyDemandExpander extends GenerateDemandExpander (Code) | | Specifies how to create SUPPLY demand tasks for demand projection.
|
Inner Class :public static class ProjectionTasksPredicate implements UnaryPredicate | |
Method Summary | |
protected Vector | createProjectionPreferences(long start, long end, Rate rate, double mult) | protected Vector | createSupplyPreferences(long end, double qty) | protected Vector | demandTaskPrepPhrases(Object consumer, Asset resource, long time, Task parent_task) Create FOR, TO, MAINTAIN, and OFTYPE prepositional phrases
for use by the subclasses. | protected GeolocLocation | getGeolocLocation(Task parent_task, long time) | protected Task | newDemandTask(Task parent_task, Asset direct_object, Object consumer, long end, double qty) | protected Task | newProjectionTask(Task parent_task, Asset direct_object, Object consumer, long start, long end, Rate rate, double multiplier) |
createProjectionPreferences | protected Vector createProjectionPreferences(long start, long end, Rate rate, double mult)(Code) | | |
createSupplyPreferences | protected Vector createSupplyPreferences(long end, double qty)(Code) | | |
demandTaskPrepPhrases | protected Vector demandTaskPrepPhrases(Object consumer, Asset resource, long time, Task parent_task)(Code) | | Create FOR, TO, MAINTAIN, and OFTYPE prepositional phrases
for use by the subclasses.
Parameters: consumer - the consumer the task support Parameters: time - - used to find the OPlan and the geoloc for the TO preposition Vector of PrepostionalPhrases See Also: GenerateSupplyDemandExpander.createDemandTasks |
newDemandTask | protected Task newDemandTask(Task parent_task, Asset direct_object, Object consumer, long end, double qty)(Code) | | Create SUPPLY Task w/ prep phrases
Parameters: direct_object - requested item (consumed part) Parameters: end - end time Parameters: qty - quantity of item requested supply task for given asset. |
newProjectionTask | protected Task newProjectionTask(Task parent_task, Asset direct_object, Object consumer, long start, long end, Rate rate, double multiplier)(Code) | | Create PROJECTSUPPLY Task w/ prep phrases
Parameters: parent_task - Parameters: direct_object - requested item (consumed part) Parameters: consumer - Parameters: start - start time Parameters: end - end time Parameters: rate - of consumption for item requested supply task for given asset. |
Methods inherited from org.cougaar.glm.plugins.projection.GenerateDemandExpander | protected Vector createConstantParameterDemandTasks(Task parent_task, Asset resource, Schedule rate_schedule, double multiplier)(Code)(Java Doc) public Vector createDemandTasks(Task parent_task, Asset resource, Schedule rate_schedule, double multiplier)(Code)(Java Doc) protected Vector createPeriodicDemandTasks(Task parent_task, Asset resource, Schedule rate_schedule)(Code)(Java Doc) protected void createPolicyTable(Enumeration policies)(Code)(Java Doc) protected int createResourceConsumptionTasks(Task parent_task)(Code)(Java Doc) protected int getAggregationPeriod(String type)(Code)(Java Doc) protected ConsumerSpec getDemandSpec(Task task)(Code)(Java Doc) protected double getTotalDemand(Schedule sched, long start, long end)(Code)(Java Doc) protected void initializeSubscriptions()(Code)(Java Doc) abstract protected Task newDemandTask(Task parent_task, Asset resource, Object consumer, long end_time, double quantity)(Code)(Java Doc) abstract protected Task newProjectionTask(Task parent_task, Asset resource, Object consumer, long start_time, long end_time, Rate rate, double multiplier)(Code)(Java Doc) public boolean processTasks(Enumeration tasks)(Code)(Java Doc) protected void publishChangeProjection(Task parent_task, Asset resource, Enumeration new_tasks)(Code)(Java Doc) public void update()(Code)(Java Doc) protected void updateGenerateDemandExpansion()(Code)(Java Doc)
|
|
|