| org.cougaar.planning.plugin.legacy.SimplePlugin org.cougaar.mlm.plugin.sample.ProvideEstimatesPlugin
ProvideEstimatesPlugin | public class ProvideEstimatesPlugin extends SimplePlugin (Code) | | Plugin that subscribes to all BulkEstimate objects. For each BulkEstimate
the Plugin unpacks the object to get the task and the collection of preference
sets. The plugin creates a root task with a verb of BulkEstimate and an expansion
in which the subtask is the BE task with one of the preference sets attached.
When the subtask gets published, a "real" plugin will dispose it and the results
will flow back up to our Expansion PlanElement. When the allocation result reaches
the specified confidence rating, the result information will be stored and the
root task will be rescinded (along with everything underneath it). If there
are more preference sets in the BulkEstimate, the process will repeat until all
preference sets have been used. At that point, this plugin will compile all results
and place them in the BulkEstimate object, set the IsComplete flag to true and
publishChange the BulkEstimate object.
|
Inner Class :class BEStatus | |
execute | public synchronized void execute()(Code) | | |
setupSubscriptions | protected void setupSubscriptions()(Code) | | |
|
|