public class YearlyAgeTrialMatrixSelector extends AbstractAggregationSelector
aggregation
Constructor and Description |
---|
YearlyAgeTrialMatrixSelector(AbstractAggregationSelector[] addSels,
AbstractAggregationSelector[] subSels,
String customFileName,
int yearOfInterest)
Creates a age x trial matrix selector for a single year.
|
YearlyAgeTrialMatrixSelector(List<AbstractAggregationSelector> selectorsForAddition,
List<AbstractAggregationSelector> selectorsForSubtraction,
String customFileName,
int yearOfInterest)
Creates a age x trial matrix selector for a single year.
|
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 YearlyAgeTrialMatrixSelector(AbstractAggregationSelector[] addSels, AbstractAggregationSelector[] subSels, String customFileName, int yearOfInterest)
addSels
- the list of selected results to be addedsubSels
- the list of selected results to be subtractedcustomFileName
- a custom file nameyearOfInterest
- the year of interestpublic YearlyAgeTrialMatrixSelector(List<AbstractAggregationSelector> selectorsForAddition, List<AbstractAggregationSelector> selectorsForSubtraction, String customFileName, int yearOfInterest)
addSels
- the list of selected results to be addedsubSels
- the list of selected results to be subtractedcustomFileName
- a custom file nameyearOfInterest
- the year of interestpublic 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 © 2013. All Rights Reserved.