|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfern.benchmark.Benchmark
fern.benchmark.SimulatorPerformance
public abstract class SimulatorPerformance
Measures the performance of the different simulation algorithms for a given network.
This is the base class for different benchmarks and manages the simulators, the iteration
of the simulators and when results have to be presented. You just have to implement
present
and getController
and add some Observer
s to the
simulators
.
Constructor Summary | |
---|---|
SimulatorPerformance(Network net)
Registers the six built-in simulators for the performance benchmarks. |
Method Summary | |
---|---|
void |
benchmark()
Performs one benchmark for each of the six simulators. |
int |
getShowSteps()
Gets the number of iterations between two present -calls. |
Simulator[] |
getSimulators()
Gets the simulators used by this benchmark. |
void |
setShowSteps(int showSteps)
Sets the number of iterations between two present -calls. |
Methods inherited from class fern.benchmark.Benchmark |
---|
addData, clearData, createRandomDoubleArray, end, getNumBins, setNumBins, start, toGnuplot, toGnuplot, toGnuPlotAsHistogram, toGnuPlotAsHistogram |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimulatorPerformance(Network net)
net
- the network to benchmarkGillespieSimple
,
GillespieEnhanced
,
GibsonBruckSimulator
,
TauLeapingAbsoluteBoundSimulator
,
TauLeapingRelativeBoundSimulator
,
TauLeapingSpeciesPopulationBoundSimulator
Method Detail |
---|
public void benchmark()
Benchmark
's
data pool. After each getShowSteps()
iterations, present
is called.
Benchmark.addData(double[])
public int getShowSteps()
present
-calls.
public void setShowSteps(int showSteps)
present
-calls.
showSteps
- the showSteps to setpublic Simulator[] getSimulators()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |