Package examples.running
Class UsingJSLDbExamples
- java.lang.Object
-
- examples.running.UsingJSLDbExamples
-
public class UsingJSLDbExamples extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UsingJSLDbExamples()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)static voidrun2ndSimulation(JSLDatabase db)static voidrun3rdSimulation(JSLDatabase db)static voidshowDbReuse()Illustrate how to get data from a previously executed simulation that had data in database.static voidshowMultipleRunsOfSameSimulation()Creates and attaches a single database.static voidtestJSLDatabase()Creates and runs a simulation with a database.static voidtestJSLDatabaseObserver()Creates an embedded derby database and captures data from simulation.static voidtestMCBRuns()Illustrates creating a single database to hold data from 3 consecutively created and executed simulations.static voidtestPostgressDb()Illustrates how to use a Postgres database.static voidtestTwoDatabases()Illustrates that two or more databases can be attached to the same simulation
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
testJSLDatabase
public static void testJSLDatabase()
Creates and runs a simulation with a database. Database uses the name of the simulation. Database will be deleted and re-filled based on run. Illustrates how to write database to Excel
-
testJSLDatabaseObserver
public static void testJSLDatabaseObserver()
Creates an embedded derby database and captures data from simulation. Provides a name other than the simulation name for the database.
-
testTwoDatabases
public static void testTwoDatabases()
Illustrates that two or more databases can be attached to the same simulation
-
testPostgressDb
public static void testPostgressDb()
Illustrates how to use a Postgres database. When running this method, you must have a local Postgres server running and the database server needs to have the appropriate user and password account set up.
-
showDbReuse
public static void showDbReuse()
Illustrate how to get data from a previously executed simulation that had data in database. This method assumes that method, testJSLDatabase(), has already been executed
-
showMultipleRunsOfSameSimulation
public static void showMultipleRunsOfSameSimulation()
Creates and attaches a single database. Makes multiple runs of the same simulation within the same execution context, renaming the experiment between simulation runs. Database stores data from the different simulation runs in the same database using different experiment names.
-
testMCBRuns
public static void testMCBRuns()
Illustrates creating a single database to hold data from 3 consecutively created and executed simulations. Illustrates how to get MCB data from the database and show MCB results
-
run2ndSimulation
public static void run2ndSimulation(JSLDatabase db)
-
run3rdSimulation
public static void run3rdSimulation(JSLDatabase db)
-
-