An object that memorizes simulation data or performs some other function that needs to happen regularly. The memorize method is meant to be called after each simulation time step, as is done in AdvanceStrategy.advance. See MemoList for how to add a Memorizable object so that it will be called frequently.

interface Memorizable {
    memorize(): void;
    toStringShort(): string;

Hierarchy (view full)

Implemented by


  • Memorize the current simulation data, or do some other function that should happen regularly after each simulation time step.

    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