
SSJ V. 2.6. 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object umontreal.iro.lecuyer.simevents.ContinuousState
public class ContinuousState
Represents the portion of the simulator's state associated with
continuoustime simulation.
Any simulator, including the default static one, can have an associate continuous state
which is obtained using the continuousState() method
of the Simulator
class.
This state includes all active integration variables as well as the current integration method.
One of the methods selectEuler
, selectRungeKutta2
or
selectRungeKutta4
must be called before starting
any integration.
These methods permit one to select the numerical integration method
and the step size h (in time units) that will be used
for all continuoustime variables linked to the simulator.
For all the methods, an integration step at time t changes
the values of the variables from their old values at time t  h to their
new values at time t.
Each integration step is scheduled as an event and added to the event list.
Nested Class Summary  

static class 
ContinuousState.IntegMethod

Method Summary  

List<Continuous> 
getContinuousVariables()
Returns the list of continuoustime variables currently integrated by the simulator. 
ContinuousState.IntegMethod 
integMethod()
Return an integer that represent the integration method in use. 
void 
selectEuler(double h)
Selects the Euler method as the integration method, with the integration step size h, in time units. 
void 
selectRungeKutta2(double h)
Selects a RungeKutta method of order 2 as the integration method to be used, with step size h. 
void 
selectRungeKutta4(double h)
Selects a RungeKutta method of order 4 as the integration method to be used, with step size h. 
Methods inherited from class java.lang.Object 

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Method Detail 

public List<Continuous> getContinuousVariables()
Continuous
to add
or remove variables.
public ContinuousState.IntegMethod integMethod()
public void selectEuler(double h)
h
 integration step, in simulation time unitspublic void selectRungeKutta2(double h)
h
 integration step, in simulation time unitspublic void selectRungeKutta4(double h)
h
 integration step, in simulation time units

SSJ V. 2.6. 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 