Example #1
0
 /**
  * Adds a partition of a timed value to the spec.
  *
  * @param name the name of the partition
  * @param part the partition itself
  */
 public void addTimedPartition(String name, Partition<Timed<T>> part) {
   partitions.add(Named.create(name, part));
 }
Example #2
0
 /**
  * Adds a statistic to the spec
  *
  * @param name the name of the statistic
  * @param stat the statistic itself
  */
 public void addStatistic(String name, Statistic<T> stat) {
   statistics.add(Named.create(name, stat));
 }
Example #3
0
 /**
  * Adds a partition to the spec. If time is part of the partition criterion, use {@link
  * addTimedPartition} instead
  *
  * @param name the name of the partition
  * @param part the partition itself
  */
 public void addPartition(String name, Partition<T> part) {
   partitions.add(Named.create(name, part.lift(Timed.<T>valueFunction())));
 }
Example #4
0
 /**
  * Adds a time partition to the spec (not to be confused with {@link addTimedPartition})
  *
  * @param name the name of the partition
  * @param part the partition itself
  */
 public void addTimePartition(String name, Partition<Double> part) {
   partitions.add(Named.create(name, part.lift(Timed.<T>timeFunction())));
 }