|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjigcell.compare.tests.Benchmark
jigcell.compare.tests.ObjectiveBenchmark
public class ObjectiveBenchmark
A collection of tests for evaluating objective function loading performance.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Field Summary | |
|---|---|
protected IDataEditorTab |
experimentView
View to load experimental data in |
protected EditableSeriesView |
objectiveView
View to load objective functions in |
protected IDataGenerator |
result
Record of loading results |
protected FileDataSource |
source
Source to load from |
| Fields inherited from class jigcell.compare.tests.Benchmark |
|---|
benchmarkRunnable, compare |
| Constructor Summary | |
|---|---|
ObjectiveBenchmark(Compare compare)
Creates a new tester for objective function loading performance. |
|
| Method Summary | |
|---|---|
double |
benchmark(int size)
Runs an objective loading benchmark. |
double |
benchmarkAddRow(int size)
Runs a benchmark that loads an experiment file, adds a new row, saves the experiment file, loads a transform file, adds a new transform, and saves the transform file. |
static IDataGeneratorMap |
generateData(int size)
Generates some objective functions. |
static IObjective |
generateObjective(IObjective metric,
int seed)
Generates a new objective function. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
IDataGenerator |
runBenchmark()
Runs a collection of benchmarks for loading objective files. |
IDataGenerator |
runBenchmarkAddRow()
Runs a collection of benchmarks for configuring a new experiment. |
protected void |
runOffEventThread()
Performs the tester computations that do not interact with the interface. |
protected void |
runOnEventThread(int state)
Performs an operation that interacts with the interface. |
static void |
test(Compare compare)
Runs a loading benchmark. |
| Methods inherited from class jigcell.compare.tests.Benchmark |
|---|
createBenchmarkReport, currentTime, loadInView, reset, runState, timeRunState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EditableSeriesView objectiveView
protected FileDataSource source
protected IDataEditorTab experimentView
protected IDataGenerator result
| Constructor Detail |
|---|
public ObjectiveBenchmark(Compare compare)
compare - Comparator to abuse| Method Detail |
|---|
public static IDataGeneratorMap generateData(int size)
size - Number of objective functions to create
public static IObjective generateObjective(IObjective metric,
int seed)
metric - Function to use as objectiveseed - Number used to create unique datapublic static void test(Compare compare)
compare - Comparator to abuse
public double benchmark(int size)
throws java.lang.Exception
size - Number of objectives to create
java.lang.Exception
public double benchmarkAddRow(int size)
throws java.lang.Exception
size - Size of experiment and transform files
java.lang.Exceptionpublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListener
public IDataGenerator runBenchmark()
throws java.lang.Exception
java.lang.Exception
public IDataGenerator runBenchmarkAddRow()
throws java.lang.Exception
java.lang.Exception
protected void runOffEventThread()
throws java.lang.Exception
runOffEventThread in class Benchmarkjava.lang.Exception
protected void runOnEventThread(int state)
throws java.lang.Exception
runOnEventThread in class Benchmarkstate - Indicates which interface operation is next
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||