VariableState#
- class VariableState(value: ansys.tools.variableinterop.variable_value.IVariableValue, is_valid: bool)#
Bundles a variable value with a validity flag.
Overview#
Clone the instance. |
Get the variable value. |
|
Flag indicating that the object is equal to the other object. |
|
Variable value. |
Check if this object is equal to another object. |
Import detail#
from ansys.tools.variableinterop.variable_state import VariableState
Property detail#
- property VariableState.value: IVariableValue#
Get the variable value.
- property VariableState.is_valid: bool#
Flag indicating that the object is equal to the other object.
True
indicates that the objects are equal.
- property VariableState.safe_value: IVariableValue#
Variable value.
VariableValueInvalidError
is raised if the variable value is not valid.
Method detail#
- VariableState.__eq__(other) bool #
Check if this object is equal to another object.
- Parameters:
- other
Any
Other object to compare.
- other
- Returns:
- bool
True
if the objects are equal,False
otherwise.
- VariableState.clone() VariableState #
Clone the instance.
The returned instance contains a clone of this instanceβs value.
- Returns:
VariableState
Deep copy of the instance.