PassiveVariable
- class osaft.core.variable.PassiveVariable(val, name=None)[source]
Bases:
BaseVariablePassive variable without any computation dependencies
- Parameters
val (Any) – initial value
name (None | str, optional) – Name of the variable
Default:NonePublic Methods:
Inherited from
BaseVariablenotify()Notifies all items in
BaseVariable._variables_to_notifythat a dependent value changed.
- notify()
Notifies all items in
BaseVariable._variables_to_notifythat 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- Return type
str
- property value: Any
Value of the attribute
- Setter
just defined in
PassiveVariable- Getter
returns/computes the value of the instance
- Return type
Any