Class SimContext


  • public class SimContext
    extends Object
    SimContext provides static versions of the most frequently used simulation methods as well as static factory methods to create new simulations. By statically importing the methods from SimContext, the most important simulation methods can be accessed in a more concise way or in contexts, where the current simulation can not be accessed easily.

    The currently active simulation is stored internally in a ThreadLocal variable. Most methods in this class call requireSimContext() and then delegate to the corresponding method in Simulation or the simulation's currently active SimProcess. Exceptions to this are the factory methods simulationOf(String, SimAction)/ async(String, SimAction)/ createSim(String, SimAction).

    Author:
    Torsten.Hildebrandt