bb.science
Class Bootstrap.UnitTest.CiResult

java.lang.Object
  extended by bb.science.Bootstrap.UnitTest.CiResult
Enclosing class:
Bootstrap.UnitTest

private static class Bootstrap.UnitTest.CiResult
extends Object

Accumulates the results of running many individual Bootstrap.UnitTest.CiTasks. Using an instance of this class allows you to avoid having to retain references to all the CiTasks that you would otherwise have to do if want sum up their results once all have finished executing. Since this instance uses little memory, while there may be huge numbers of CiTasks, this is a big memory savings.

This class is multithread safe: every method is synchronized.


Nested Class Summary
private static class Bootstrap.UnitTest.CiResult.Metrics
          This class is NOT multithread safe: it expects its enclosing class to guard access to it.
 
Field Summary
private  Map<Bootstrap.Estimator,Bootstrap.UnitTest.CiResult.Metrics> estimatorToMetrics
           
private  String prefix
           
private  Bootstrap.UnitTest.CiTask taskFirst
           
 
Constructor Summary
private Bootstrap.UnitTest.CiResult(String prefix)
           
 
Method Summary
private  String getAnswer()
           
private  Bootstrap.UnitTest.CiResult.Metrics getMetrics(Bootstrap.Estimator estimator)
           
private  void include(Bootstrap.UnitTest.CiTask task, Map<Bootstrap.Estimator,Bootstrap.Estimate> resultsBs, Map<Bootstrap.Estimator,Bootstrap.Estimate> resultsTheory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

estimatorToMetrics

private final Map<Bootstrap.Estimator,Bootstrap.UnitTest.CiResult.Metrics> estimatorToMetrics

prefix

private final String prefix

taskFirst

private Bootstrap.UnitTest.CiTask taskFirst
Constructor Detail

Bootstrap.UnitTest.CiResult

private Bootstrap.UnitTest.CiResult(String prefix)
Method Detail

include

private void include(Bootstrap.UnitTest.CiTask task,
                     Map<Bootstrap.Estimator,Bootstrap.Estimate> resultsBs,
                     Map<Bootstrap.Estimator,Bootstrap.Estimate> resultsTheory)
              throws IllegalArgumentException
Throws:
IllegalArgumentException

getMetrics

private Bootstrap.UnitTest.CiResult.Metrics getMetrics(Bootstrap.Estimator estimator)

getAnswer

private String getAnswer()