Public Member Functions | |
| double | derivative (double t) |
| This method should return the derivative of this variable with respect to time, at time \(t\). | |
| Public Member Functions inherited from umontreal.ssj.simevents.Continuous | |
| Continuous () | |
| Constructs a new continuous-time variable linked to the default simulator, without initializing it. | |
| Continuous (Simulator sim) | |
| Constructs a new continuous-time variable linked to the given simulator, without initializing it. | |
| void | init (double val) |
| Initializes or reinitializes the continuous-time variable to val. | |
| double | value () |
| Returns the current value of this continuous-time variable. | |
| Simulator | simulator () |
| Returns the simulator linked to this continuous-time variable. | |
| void | setSimulator (Simulator sim) |
| Sets the simulator linked to this continuous-time variable. | |
| void | startInteg () |
| Starts the integration process that will change the state of this variable at each integration step. | |
| void | startInteg (double val) |
| Same as startInteg, after initializing the variable to val. | |
| void | stopInteg () |
| Stops the integration process for this continuous variable. | |
| void | afterEachStep () |
| This method is executed after each integration step for this Continuous variable. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from umontreal.ssj.simevents.Continuous | |
| static void | selectEuler (double h) |
| Selects the Euler method as the integration method, with the integration step size h, in time units, for the default simulator. | |
| static void | selectRungeKutta4 (double h) |
| Selects a Runge-Kutta method of order 4 as the integration method to be used, with step size h. | |
| static void | selectRungeKutta2 (double h) |
| Selects a Runge-Kutta method of order 2 as the integration method to be used, with step size h. | |
Definition at line 29 of file PreyPred.java.
| double tutorial.PreyPred.Preys.derivative | ( | double | t | ) |
This method should return the derivative of this variable with respect to time, at time \(t\).
Every subclass of Continuous that is to be instantiated must implement it. If the derivative does not depend explicitly on time, \(t\) becomes a dummy parameter. Internally, the method is used with \(t\) not necessarily equal to the current simulation time.
| t | time at which the derivative must be computed |
Reimplemented from umontreal.ssj.simevents.Continuous.
Definition at line 34 of file PreyPred.java.