p3j.experiment.results
Interface IAggregationSelector

All Known Implementing Classes:
AbstractAggregationSelector, ChooseAgesForSingleYearSelector, MergeSubPopChooseAgesSingleYearSelector, MergeSubPopOldAgeDependencyRatioSelector, MergeSubPopSumOverAgesSelector, SumOverAgesSelector, YearlyAgeTrialMatrixSelector

public interface IAggregationSelector

A simple interface to define functions that select data for aggregation. See AbstractAggregationSelector for auxiliary methods.

Author:
Christina Bohk, Roland Ewald

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.
 

Method Detail

init

void init(int numOfTrials,
          int numOfYears,
          int numOfAgeClasses)
Initialize the number of age classes etc.

Parameters:
numOfTrials - the number of trials
numOfYears - the number of years
numOfAgeClasses - the number of age classes

consider

void consider(int trialCount,
              ResultsOfTrial result)
Called to consider a single result.

Parameters:
trialCount - the trial count (i.e. index)
result - the result

finish

void finish(File destinationDir,
            List<Integer> indexOrdering,
            ResultExport resultExport)
            throws IOException
Finishing the aggregation. Called after all relevant results have been considered, use this to write results.

Parameters:
destinationDir - the destination dir
indexOrdering - the index ordering
resultExport - the result export
Throws:
IOException - Signals that an I/O exception has occurred.


Copyright © 2012. All Rights Reserved.