An AdvanceStrategy for advancing an ODESim thru time.

interface ODEAdvance {
    advance(timeStep, opt_memoList?): void;
    getDiffEqSolver(): DiffEqSolver;
    getTime(): number;
    getTimeStep(): number;
    reset(): void;
    save(): void;
    setDiffEqSolver(diffEqSolver): void;
    setTimeStep(timeStep): void;
    toStringShort(): string;

Hierarchy (view full)

Implemented by


  • Advances the Simulation state by the specified amount of time.


    • timeStep: number

      the amount of time to advance in seconds

    • Optional opt_memoList: MemoList

      optional MemoList to call whenever the simulation state is advanced

    Returns void


    when unable to advance the simulation

  • Sets the DiffEqSolver used to solve the differential equations


    • diffEqSolver: DiffEqSolver

      the DiffEqSolver used to solve the differential equations of this simulation.

    Returns void

  • Sets the default time step, the small increment of time by which to advance the simulation's state.

    The reason for storing the time step in AdvanceStrategy is so that test/TestViewerApp.TestViewerApp produces the same results as running a test. This is a convenient way for a test to make known the time step to use.


    • timeStep: number

      the default time step, in seconds.

    Returns void

  • Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.

    For an object whose main purpose is to represent another Printable object, it is recommended to include the result of calling toStringShort on that other object. For example, calling toStringShort() on a DisplayShape might return something like this:


    Returns string

    a minimal string representation of this object.

Generated using TypeDoc