public class SumOverAgesSelector extends AbstractAggregationSelector
aggregation
Constructor and Description |
---|
SumOverAgesSelector(p3j.experiment.results.IOutputVariableSelector resultsSelector,
p3j.experiment.results.ISubPopulationSelector trialSelector,
int generationForSelection)
Instantiates a new sum over ages selector.
|
Modifier and Type | Method and Description |
---|---|
void |
consider(int trialCount,
ResultsOfTrial result)
Called to consider a single result.
|
void |
finish(File destinationDir,
List<Integer> indexOrdering,
ResultExport resultExport)
Finishing the aggregation.
|
void |
init(int numOfTrials,
int numOfYears,
int numOfAgeClasses)
Initialize the number of age classes etc.
|
cutOffUnused, getCopy, getFileName, reorderResults, select, sumPerElement
public SumOverAgesSelector(p3j.experiment.results.IOutputVariableSelector resultsSelector, p3j.experiment.results.ISubPopulationSelector trialSelector, int generationForSelection)
resultsSelector
- the results selectortrialSelector
- the trial selectorgenerationForSelection
- the generation for selectionpublic void init(int numOfTrials, int numOfYears, int numOfAgeClasses)
IAggregationSelector
numOfTrials
- the number of trialsnumOfYears
- the number of yearsnumOfAgeClasses
- the number of age classespublic void consider(int trialCount, ResultsOfTrial result)
IAggregationSelector
trialCount
- the trial count (i.e. index)result
- the resultpublic void finish(File destinationDir, List<Integer> indexOrdering, ResultExport resultExport) throws IOException
IAggregationSelector
destinationDir
- the destination dirindexOrdering
- the index orderingresultExport
- the result exportIOException
- Signals that an I/O exception has occurred.Copyright © 2012. All Rights Reserved.