26package umontreal.ssj.simevents;
108 throw new NullPointerException();
148 throw new NullPointerException();
157 sim.continuousState().startInteg(
this);
176 sim.continuousState().stopInteg(
this);
void selectRungeKutta4(double h)
Selects a Runge-Kutta method of order 4 as the integration method to be used, with step size h.
void selectRungeKutta2(double h)
Selects a Runge-Kutta method of order 2 as the integration method to be used, with step size h.
void selectEuler(double h)
Selects the Euler method as the integration method, with the integration step size h,...
void startInteg(double val)
Same as startInteg, after initializing the variable to val.
void init(double val)
Initializes or reinitializes the continuous-time variable to val.
void setSimulator(Simulator sim)
Sets the simulator linked to this continuous-time variable.
static void selectRungeKutta2(double h)
Selects a Runge-Kutta method of order 2 as the integration method to be used, with step size h.
void startInteg()
Starts the integration process that will change the state of this variable at each integration step.
static void selectEuler(double h)
Selects the Euler method as the integration method, with the integration step size h,...
static void selectRungeKutta4(double h)
Selects a Runge-Kutta method of order 4 as the integration method to be used, with step size h.
Continuous()
Constructs a new continuous-time variable linked to the default simulator, without initializing it.
void afterEachStep()
This method is executed after each integration step for this Continuous variable.
void stopInteg()
Stops the integration process for this continuous variable.
double value()
Returns the current value of this continuous-time variable.
abstract double derivative(double t)
This method should return the derivative of this variable with respect to time, at time .
Simulator simulator()
Returns the simulator linked to this continuous-time variable.
Continuous(Simulator sim)
Constructs a new continuous-time variable linked to the given simulator, without initializing it.
This abstract class provides event scheduling tools.
Represents the executive of a discrete-event simulator.
static Simulator getDefaultSimulator()
Returns the default simulator instance used by the deprecated class.