Class UsingJSLDbExamples


  • public class UsingJSLDbExamples
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static void run2ndSimulation​(JSLDatabase db)  
      static void run3rdSimulation​(JSLDatabase db)  
      static void showDbReuse()
      Illustrate how to get data from a previously executed simulation that had data in database.
      static void showMultipleRunsOfSameSimulation()
      Creates and attaches a single database.
      static void testJSLDatabase()
      Creates and runs a simulation with a database.
      static void testJSLDatabaseObserver()
      Creates an embedded derby database and captures data from simulation.
      static void testMCBRuns()
      Illustrates creating a single database to hold data from 3 consecutively created and executed simulations.
      static void testPostgressDb()
      Illustrates how to use a Postgres database.
      static void testTwoDatabases()
      Illustrates that two or more databases can be attached to the same simulation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UsingJSLDbExamples

        public UsingJSLDbExamples()
    • 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)