PassiveVariable
- class osaft.core.variable.PassiveVariable(val, name=None)[source]
Bases:
BaseVariablePassive variable without any computation dependencies
- Parameters:
val (
Any) – initial valuename (
Optional[str], optional) – Name of the variableDefault: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
- property value: Any
Value of the attribute
- Setter:
just defined in
PassiveVariable- Getter:
returns/computes the value of the instance