|
||||||||||
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.YearlyAgeTrialMatrixSelector
public class YearlyAgeTrialMatrixSelector
Aggregates a trial x age matrix for a given year.
Field Summary |
---|
Fields inherited from class p3j.experiment.results.AbstractAggregationSelector |
---|
aggregation |
Constructor Summary | |
---|---|
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. |
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. |
void |
init(int numOfTrials,
int numOfYears,
int numOfAgeClasses)
Initialize the number of age classes etc. |
Methods inherited from class p3j.experiment.results.AbstractAggregationSelector |
---|
cutOffUnused, getCopy, getFileName, reorderResults, select, sumPerElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 interestMethod 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |