| java.lang.Object org.cougaar.planning.ldm.plan.BulkEstimateImpl
BulkEstimateImpl | public class BulkEstimateImpl implements BulkEstimate,NewBulkEstimate(Code) | | BulkEstimate Implementation
A BulkEstimate is similar to but not a subclass of PlanElement.
A BulkEstimate allows for a Plugin to specify a Task with a collection
of Preference sets and get back a collection of AllocationResults.
Each AllocationResult will represent the results of allocating the Task
with one of the Preference sets.
|
Constructor Summary | |
public | BulkEstimateImpl(Task thetask, List thepreferencesets, double confrating) Constructor that takes the task and preference sets. |
BulkEstimateImpl | public BulkEstimateImpl(Task thetask, List thepreferencesets, double confrating)(Code) | | Constructor that takes the task and preference sets.
Parameters: thetask - Parameters: thepreferencesets - Parameters: confrating - the confidence rating to be reached by each allocation |
getAllocationResults | public AllocationResult[] getAllocationResults()(Code) | | The Array of AllocationResults. Note that this collection will be changing until isComplete() |
getConfidenceRating | public double getConfidenceRating()(Code) | | The confidence rating of each AllocationResult thatmust be reached before the result is valid and the next preference set can be tested. The confidence rating should be between 0.0 and 1.0 with 1.0 being the most complete of allocations. |
getPreferenceSets | public List getPreferenceSets()(Code) | | The collection of preference sets. Each set will berepresented by a Preference Array. |
getTask | public Task getTask()(Code) | | The task to be allocated |
isComplete | public boolean isComplete()(Code) | | Will be set to true once all of the AllocationResultsfor each preference set have been gathered. |
setAllocationResults | public void setAllocationResults(AllocationResult[] allresults)(Code) | | Parameters: allresults - The complete Array of AllocationResults. |
setIsComplete | public void setIsComplete(boolean complete)(Code) | | Parameters: complete - Should be set to true once all of the AllocationResultsfor each preference set have been gathered. |
setSingleResult | public void setSingleResult(int index, AllocationResult aresult)(Code) | | set a single AllocationResult
Parameters: index - The position of the result in the overall result array.This position should correspond to the preference set position. Parameters: aresult - |
|
|