|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp3j.experiment.results.AbstractAggregationSelector
p3j.experiment.results.ChooseAgesForSingleYearSelector
public class ChooseAgesForSingleYearSelector
Selectors of this type select data from a particular year across all trials. The leave the age groups untouched; the aggregated data can, e.g., be used to create population pyramids.
Field Summary |
---|
Fields inherited from class p3j.experiment.results.AbstractAggregationSelector |
---|
aggregation |
Constructor Summary | |
---|---|
ChooseAgesForSingleYearSelector(p3j.experiment.results.IOutputVariableSelector resultsSelector,
p3j.experiment.results.ISubPopulationSelector trialSelector,
int generationForSelection,
int yearForSelection)
Instantiates a new choose ages for single year selector. |
Method Summary | |
---|---|
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)
|
Methods inherited from class p3j.experiment.results.AbstractAggregationSelector |
---|
cutOffUnused, getCopy, reorderResults, select, sumPerElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 selectionMethod Detail |
---|
public 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 export
IOException
- 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |