ScalarVariable

class ospx.fmi.variable.ScalarVariable(name: str, data_type: str | None = None, causality: str | None = None, variability: str | None = None, start: int | float | bool | str | None = None, value_reference: int = 0, description: str | None = None, quantity: str | None = None, unit: str | None = None, display_unit: str | None = None)

Bases: object

fmi 2.0 ScalarVariable.

See https://github.com/modelica/fmi-standard/blob/v2.0.x/schema/fmi2ScalarVariable.xsd

__init__(name: str, data_type: str | None = None, causality: str | None = None, variability: str | None = None, start: int | float | bool | str | None = None, value_reference: int = 0, description: str | None = None, quantity: str | None = None, unit: str | None = None, display_unit: str | None = None) None

Methods

__init__(name[, data_type, causality, ...])

Attributes

causality

Returns the causality of the scalar Variable.

data_type

Returns the FMI data type of the scalar Variable.

start

Returns the start value (initial value) of the scalar Variable.

variability

Returns the variability of the scalar Variable.

property causality: str

Returns the causality of the scalar Variable.

property data_type: str | None

Returns the FMI data type of the scalar Variable.

property start: int | float | bool | str | None

Returns the start value (initial value) of the scalar Variable.

property variability: str | None

Returns the variability of the scalar Variable.