p3j.experiment.results
Class MergeSubPopOldAgeDependencyRatioSelector

java.lang.Object
  extended by p3j.experiment.results.AbstractAggregationSelector
      extended by p3j.experiment.results.SumOverAgesSelector
          extended by p3j.experiment.results.MergeSubPopSumOverAgesSelector
              extended by p3j.experiment.results.MergeSubPopOldAgeDependencyRatioSelector
All Implemented Interfaces:
IAggregationSelector

public class MergeSubPopOldAgeDependencyRatioSelector
extends MergeSubPopSumOverAgesSelector

Computes the old age dependency ratio for certain sub-populations.

Author:
Christina Bohk, Roland Ewald

Field Summary
 
Fields inherited from class p3j.experiment.results.AbstractAggregationSelector
aggregation
 
Constructor Summary
MergeSubPopOldAgeDependencyRatioSelector(AbstractAggregationSelector[] selectorsForAddition, AbstractAggregationSelector[] selectorsForSubtraction, String customFileName)
          Instantiates a new merge sub-population for old age dependency ratios selector.
MergeSubPopOldAgeDependencyRatioSelector(List<AbstractAggregationSelector> selectorsForAddition, List<AbstractAggregationSelector> selectorsForSubtraction, String customFileName)
          Instantiates a new merge sub-populations for old age dependency ratio selector.
 
Method Summary
 void consider(int trialCount, ResultsOfTrial result)
          Called to consider a single result.
 
Methods inherited from class p3j.experiment.results.MergeSubPopSumOverAgesSelector
getAddAggregationSelectors, getFileName, getSubtractAggregationSelectors
 
Methods inherited from class p3j.experiment.results.SumOverAgesSelector
finish, init
 
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

MergeSubPopOldAgeDependencyRatioSelector

public MergeSubPopOldAgeDependencyRatioSelector(AbstractAggregationSelector[] selectorsForAddition,
                                                AbstractAggregationSelector[] selectorsForSubtraction,
                                                String customFileName)
Instantiates a new merge sub-population for old age dependency ratios selector.

Parameters:
selectorsForAddition - the selectors for addition
selectorsForSubtraction - the selectors for subtraction
customFileName - the custom file name

MergeSubPopOldAgeDependencyRatioSelector

public MergeSubPopOldAgeDependencyRatioSelector(List<AbstractAggregationSelector> selectorsForAddition,
                                                List<AbstractAggregationSelector> selectorsForSubtraction,
                                                String customFileName)
Instantiates a new merge sub-populations for old age dependency ratio selector.

Parameters:
selectorsForAddition - the selectors for addition
selectorsForSubtraction - the selectors for subtraction
customFileName - the custom file name
Method Detail

consider

public void consider(int trialCount,
                     ResultsOfTrial result)
Description copied from interface: IAggregationSelector
Called to consider a single result.

Specified by:
consider in interface IAggregationSelector
Overrides:
consider in class MergeSubPopSumOverAgesSelector
Parameters:
trialCount - the trial count (i.e. index)
result - the result


Copyright © 2012. All Rights Reserved.