PassiveVariable#

class osaft.core.variable.PassiveVariable(val, name=None)[source]#

Bases: BaseVariable

Passive variable without any computation dependencies

Parameters:
  • val (Any) – initial value

  • name (None | str, optional) – Name of the variable

    Default: None

Public Data Attributes:

value

Value of the attribute

Inherited from BaseVariable

name

Returns name of the variable.

value

Value of the attribute

Public Methods:

Inherited from BaseVariable

notify()

Notifies all items in BaseVariable._variables_to_notify that a dependent value changed.


notify()#

Notifies all items in BaseVariable._variables_to_notify that a dependent value changed. Just the information of a changed dependency is passed.

Return type:

None

property name: str#

Returns name of the variable.

Setter:

sets _name

property value: Any#

Value of the attribute

Setter:

just defined in PassiveVariable

Getter:

returns/computes the value of the instance