| java.lang.Object org.cougaar.glm.plugins.projection.ConsumerSpec
All known Subclasses: org.cougaar.mlm.construction.ConstructionDemandSpec,
buildConsumptionRateSchedule | public Schedule buildConsumptionRateSchedule(Asset resource)(Code) | | Parameters: resource - consumed resource schedule quantity schedule of the daily rate of consumptionof the given resource. |
getMergedSchedule | public Schedule getMergedSchedule()(Code) | | Here is what this method does (Ray Tomlinson). Merges a number
of parameter schedules into a combined schedule. In the
combined schedule, the "parameter" of each element is a Vector
of the parameters from each of the input schedules. For
elements not covered by the input schedule, the corresponding
Vector element is null. The output schedule elements correspond
to the intersections of the elements or inter-element gaps of
the input schedules. No schedule element is generated for time
spans where none of the input schedules has an element.
Conversely, all elements of the merged schedule have at least
one non-null parameter.
There is an assumption that the elements of the input schedules
and the output schedule are non-overlapping.
|
getParameterSchedules | abstract public Vector getParameterSchedules()(Code) | | |
getRate | abstract public Rate getRate(Asset resource, Vector params)(Code) | | at what rate is it consumed
-1 if rate is not defined such as when there isno org activity |
reset | public void reset()(Code) | | The merged schedule drives the consumer spec.
It is only calculated once unless reset() is called.
|
|
|