| java.lang.Object org.cougaar.planning.plugin.util.AllocationResultHelper
AllocationResultHelper | public class AllocationResultHelper (Code) | | Manages AllocationResults having phased results representing
varying quantities and rates over time.
|
Inner Class :public class Phase | |
Field Summary | |
List | newResults Edit the exiting results to reflect a particular value of the
indicated aspect over a given time period. |
newResults | List newResults(Code) | | Edit the exiting results to reflect a particular value of the
indicated aspect over a given time period. Find existing
segments with different values that overlap the new segment and
adjust their times to not overlap. Then try to combine the new
segment with existing results having the same value and
adjacent or overlapping times. Finally, if the new segment
cannot be combined with any existing segment, add a new
segment. This does not fix the rollup result since that depends
on what aspect is edited.
Parameters: valueix - the index in the arrays of the aspect to change Parameters: value - the new value for the time period Parameters: startTime - the time when the value starts to apply Parameters: endTime - the time when the value no longer applies. true if a change was made. |
getPhase | public Phase getPhase(int i)(Code) | | |
getPhaseCount | public int getPhaseCount()(Code) | | |
isChanged | public boolean isChanged()(Code) | | |
setBest | public void setBest(int type, long startTime, long endTime)(Code) | | Set a successful value over a period of time
|
setFailed | public void setFailed(int type, long startTime, long endTime)(Code) | | Set a failed value over a period of time. New phased results
are edited into the results as needed.
|
|
|