Login | Register
My pages Projects Community openCollabNet

Welcome to the new Tigris! There have been some changes to the administration of mail lists. Project and list owners should check out the Discussion Services release notes.


jmt.measurement
Class MeasurementFactory

java.lang.Object
  |
  +--jmt.measurement.MeasurementFactory

public final class MeasurementFactory
extends java.lang.Object

A static factory providing method to create instances of the MethodSet, Result and ResultSet types.

Author:
Martin Kersten

Constructor Summary
MeasurementFactory()
           
 
Method Summary
static MeasurementMethodSet createMethodSet(MeasurementMethod[] methods)
          Returns a MeasurementMethodSet instance of the given methods.
static MeasurementResult createResult(double value, double rank)
          Returns a MeasurementResult instance of the given value and rank.
static MeasurementResultSet createResultSet(MeasurementResult[] results)
          Returns a MeasurementResultSet instance of the results.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasurementFactory

public MeasurementFactory()
Method Detail

createMethodSet

public static MeasurementMethodSet createMethodSet(MeasurementMethod[] methods)
Returns a MeasurementMethodSet instance of the given methods.

Parameters:
methods - A array of methods the set will consist of
Returns:
A MeasurementMethodSet instance of the given methods

createResult

public static MeasurementResult createResult(double value,
                                             double rank)
Returns a MeasurementResult instance of the given value and rank.

Parameters:
value - The value of the result
rank - The rank of the value
Returns:
A MeasurementResult instance of the given value and rank

createResultSet

public static MeasurementResultSet createResultSet(MeasurementResult[] results)
Returns a MeasurementResultSet instance of the results. Any particular results may be null to indicate that no result was measured.

Parameters:
results - A array of measurment results to be stored
Returns:
A result set consisting of the results