public class ChooseAgesForSingleYearSelector extends AbstractAggregationSelector
aggregation
Constructor and Description |
---|
ChooseAgesForSingleYearSelector(p3j.experiment.results.IOutputVariableSelector resultsSelector,
p3j.experiment.results.ISubPopulationSelector trialSelector,
int generationForSelection,
int yearForSelection)
Instantiates a new choose ages for single year 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.
|
protected String |
getFileName()
Gets the file name.
|
int |
getNumberOfAgeClasses() |
protected String |
getPrefix() |
int |
getYear() |
void |
init(int numOfTrials,
int numOfYears,
int numOfAgeClasses)
Initialize the number of age classes etc.
|
void |
setNumberOfAgeClasses(int numberOfAgeClasses) |
cutOffUnused, getCopy, reorderResults, select, sumPerElement
public ChooseAgesForSingleYearSelector(p3j.experiment.results.IOutputVariableSelector resultsSelector, p3j.experiment.results.ISubPopulationSelector trialSelector, int generationForSelection, int yearForSelection)
resultsSelector
- the results selectortrialSelector
- the trial selectorgenerationForSelection
- the generation for selectionyearForSelection
- the year 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.protected String getFileName()
AbstractAggregationSelector
getFileName
in class AbstractAggregationSelector
protected final String getPrefix()
public int getNumberOfAgeClasses()
public void setNumberOfAgeClasses(int numberOfAgeClasses)
public int getYear()
Copyright © 2013. All Rights Reserved.