|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simulator.SBMLTestSuiteRunner
public class SBMLTestSuiteRunner
This class can test the simulation of all models from the SBML test suite.
Nested Class Summary | |
---|---|
static class |
SBMLTestSuiteRunner.Options
Commannd-line options for this test program. |
Constructor Summary | |
---|---|
SBMLTestSuiteRunner()
|
Method Summary | |
---|---|
static String |
convertAbsoluteFilePathToURI(String path)
Converts spaces to %20 Converts \ to / |
static void |
main(String[] args)
Input: directory with models (containing the SBML test suite), first model to be simulated, last model to be simulated, SBMLTestSuiteRunner.Options.all (for testing the models of the test suite with
all given integrators) or SBMLTestSuiteRunner.Options.sedml (for testing the models
of the test suite using the given SED-ML files) or nothing (for testing
the models of the test suite with the RosenbrockSolver solver,
should produce only successful tests)
|
static void |
statisticForSolvers(String file,
int from,
int to)
Computes a statistic for the SBML test suite testing all provided integrators |
static MultiTable |
testModel(AbstractDESSolver solver,
Model model,
double[] timePoints,
double stepSize,
Map<String,Boolean> amountHash)
Tests one specific model |
void |
testModels()
Tests the models of the SBML test suite using Rosenbrock as integrator TEST_CASES must be set to the address of the folder "semantic" in the SBML test suite. |
static void |
testRosenbrockSolver(String file,
int from,
int to)
Computes a statistic for the SBML test suite using the Rosenbrock solver as integrator |
static void |
testRosenbrockSolverWithSEDML(String file,
int from,
int to)
Computes a statistic for the SBML test suite using the Rosenbrock solver as integrator and the SED-ML files |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SBMLTestSuiteRunner()
Method Detail |
---|
public static void main(String[] args) throws IOException, URISyntaxException
SBMLTestSuiteRunner.Options.all
(for testing the models of the test suite with
all given integrators) or SBMLTestSuiteRunner.Options.sedml
(for testing the models
of the test suite using the given SED-ML files) or nothing (for testing
the models of the test suite with the RosenbrockSolver
solver,
should produce only successful tests)
args
-
IOException
URISyntaxException
public static void statisticForSolvers(String file, int from, int to) throws FileNotFoundException, IOException
file
- from
- to
-
FileNotFoundException
IOException
public static void testRosenbrockSolver(String file, int from, int to) throws FileNotFoundException, IOException, URISyntaxException
file
- from
- to
-
FileNotFoundException
IOException
URISyntaxException
public static void testRosenbrockSolverWithSEDML(String file, int from, int to) throws FileNotFoundException, IOException, URISyntaxException
file
- from
- to
-
FileNotFoundException
IOException
URISyntaxException
public static MultiTable testModel(AbstractDESSolver solver, Model model, double[] timePoints, double stepSize, Map<String,Boolean> amountHash) throws SBMLException, ModelOverdeterminedException, DerivativeException
solver
- model
- timePoints
- stepSize
- amountHash
-
SBMLException
ModelOverdeterminedException
DerivativeException
public void testModels() throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static String convertAbsoluteFilePathToURI(String path)
path
- A Windows absolute filepath
|
Generated December 13 2012 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |