Betty 1.1
es.us.isa.benchmarking.Benchmark Class Reference
Inheritance diagram for es.us.isa.benchmarking.Benchmark:
es.us.isa.benchmarking.FAMABenchmark

List of all members.

Public Member Functions

 Benchmark (IGenerator generator)
RandomExperiment createRandomExperiment (Characteristics ch) throws BettyException
Experiment createRandomExperiment (String name, Characteristics ch) throws BettyException
ArrayList< RandomExperimentcreateSetRandomExperiment (int n, Characteristics chl) throws BettyException
ArrayList< CharacteristicsloadCharacteristics (String path) throws BettyException
void saveCharacteristics (Characteristics ch, String path)
void saveCharacteristics (Collection<?extends Experiment > exps, String path)
RandomExperiment loadVariabilityModel (String path)
void saveVariabilityModel (VariabilityModel vm, String path)
void saveVariabilityModel (Collection< Experiment > exps, String path)
void saveExperiment (RandomExperiment exp, String path)
void saveExperiments (Collection< RandomExperiment > exps, String path) throws IOException
void setExps (Collection< Experiment > exps)
Collection< ExperimentgetExps ()
IGenerator getGenerator ()
void setGenerator (IGenerator generator)
ExperimentSaver getSaver ()
void setSaver (ExperimentSaver saver)
ExperimentLoader getLoader ()
void setLoader (ExperimentLoader loader)

Protected Attributes

IGenerator generator
ExperimentSaver saver
ExperimentLoader loader
Collection< Experimentexps

Detailed Description

This class represents a new benchmark


Constructor & Destructor Documentation

es.us.isa.benchmarking.Benchmark.Benchmark ( IGenerator  generator)

A new Benchmark using an specified generator

Parameters:
generatorthe generator to be used

Member Function Documentation

RandomExperiment es.us.isa.benchmarking.Benchmark.createRandomExperiment ( Characteristics  ch) throws BettyException

Creates a new RandomExperiments, using giving characteristics.

Parameters:
chThe desired characteristics of the generated models
Returns:
A random experiment
Exceptions:
BettyException
Experiment es.us.isa.benchmarking.Benchmark.createRandomExperiment ( String  name,
Characteristics  ch 
) throws BettyException

Creates a random experiments with defined name

Parameters:
namethe name of the experiment
chThe characteristics of the generated model
Returns:
The experiment with desired characteristics
Exceptions:
BettyException
ArrayList<RandomExperiment> es.us.isa.benchmarking.Benchmark.createSetRandomExperiment ( int  n,
Characteristics  chl 
) throws BettyException

Creates a set of experiments to be executed

Parameters:
nthe number of desired experiments
chlThe Characteristics to be used
Returns:
the set of experiment
Exceptions:
BettyException
ArrayList<Characteristics> es.us.isa.benchmarking.Benchmark.loadCharacteristics ( String  path) throws BettyException

This method will load a set of charateristics from a file

Parameters:
pathwhere is the file
Returns:
A collection of Characteristics
Exceptions:
BettyException
RandomExperiment es.us.isa.benchmarking.Benchmark.loadVariabilityModel ( String  path)

This method will genreate a experiment with given variability model

Parameters:
pathWere is located the file that describes the variability model
Returns:
The random experiment
void es.us.isa.benchmarking.Benchmark.saveCharacteristics ( Characteristics  ch,
String  path 
)

This method will save a characteristic into a file

Parameters:
chthe characteristic to be saved
pathWhere we want to save it.
void es.us.isa.benchmarking.Benchmark.saveCharacteristics ( Collection<?extends Experiment exps,
String  path 
)

This method will save a set of characteristics from a set of experiments

Parameters:
expsThe set of experiments
pathWhere we want to save the characteristics
void es.us.isa.benchmarking.Benchmark.saveExperiment ( RandomExperiment  exp,
String  path 
)

This method will save a experiment into a path

Parameters:
expThe experiment to save
pathThe path where save the experiment
void es.us.isa.benchmarking.Benchmark.saveExperiments ( Collection< RandomExperiment exps,
String  path 
) throws IOException

Save a set of experiments

Parameters:
expsthe experiments to be save
pathThe path where the experiments are going to be saved
Exceptions:
IOExceptionWhen the path does'nt exist
void es.us.isa.benchmarking.Benchmark.saveVariabilityModel ( Collection< Experiment exps,
String  path 
)

This method will save a set of variability models coming from a set of experiments into a specified path

Parameters:
expsthe collection of experiments
pathwhere we want to save the models
void es.us.isa.benchmarking.Benchmark.saveVariabilityModel ( VariabilityModel  vm,
String  path 
)

This method will save the variability model into the file path specified

Parameters:
vmThe variability Model to be saved
pathWhere we want to save the file.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables