25package umontreal.ssj.simevents;
27import umontreal.ssj.simevents.eventlist.EventList;
28import umontreal.ssj.simevents.eventlist.SplayTree;
29import umontreal.ssj.simevents.Event;
30import umontreal.ssj.simevents.Simulator;
48public final class Sim {
59 public static double time() {
69 public static void init() {
This abstract class provides event scheduling tools.
static EventList getEventList()
Gets the currently used event list.
static void init(EventList evlist)
Same as init, but also chooses evlist as the event list to be used.
static void stop()
Tells the simulation executive to stop as soon as it takes control, and to return control to the prog...
static double time()
Returns the current value of the simulation clock.
static void start()
Starts the simulation executive.
static Event removeFirstEvent()
This method is used by the package umontreal.ssj.simprocs; it should not be used directly by a simula...
static void init()
Reinitializes the simulation executive by clearing up the event list, and resetting the simulation cl...
Represents the executive of a discrete-event simulator.
Event removeFirstEvent()
Removes the first event from the event list and sets the simulation clock to its event time.
EventList getEventList()
Gets the currently used event list.
void stop()
Tells the simulation executive to stop as soon as it takes control, and to return control to the prog...
void start()
Starts the simulation executive.
void init()
Reinitializes the simulation executive by clearing up the event list, and resetting the simulation cl...
static Simulator getDefaultSimulator()
Returns the default simulator instance used by the deprecated class.
double time()
Returns the current value of the simulation clock.
An interface for implementations of event lists.