Skip to content

simulation.change

Module handling changes.

Change

Change(target, sid=None, name=None)

Bases: BaseObject

Change class.

A model might need to undergo pre-processing before simulation. Those pre-processing steps are specified in the listOfChanges via the Change class on Model. Changes can be of the following types: - Changes based on mathematical calculations (ComputeChange) - Changes on attributes of the model (ChangeAttribute) - For XML-encoded models, changes on any XML snippet of the model’s XML representation (AddXML, ChangeXML, RemoveXML)

Construct Change.

ComputeChange

ComputeChange(
    sid, target, variables, parameters, math, name=None
)

Bases: Change, Calculation

ComputeChange class.

The ComputeChange class permits to change the numerical value of any single element or attribute of a Model addressable by a target, based on a calculation.

Construct ComputeChange.