BooleanMetadata#
- class ansys.tools.variableinterop.scalar_metadata.BooleanMetadata#
Bases:
ansys.tools.variableinterop.common_variable_metadata.CommonVariableMetadataProvides metadata for
BOOLEANandBOOLEAN_ARRAYvariable types.
Overview#
Creates a new metadata object from the data from a call to to_dict(). |
Variable type of the object. |
Determine if the object is equal to the metadata. |
Import detail#
from ansys.tools.variableinterop.scalar_metadata import BooleanMetadata
Property detail#
- property BooleanMetadata.variable_type: ansys.tools.variableinterop.variable_type.VariableType#
Variable type of the object.
- Returns:
VariableTypeVariable type of the object.
Method detail#
- BooleanMetadata.__eq__(other)#
Determine if the object is equal to the metadata.
- BooleanMetadata.accept(visitor: ansys.tools.variableinterop.ivariablemetadata_visitor.IVariableMetadataVisitor[ansys.tools.variableinterop.ivariablemetadata_visitor.T]) ansys.tools.variableinterop.ivariablemetadata_visitor.T#
Invoke the visitor pattern of this object using the passed-in visitor implementation.
- Parameters:
- visitor
IVariableMetadataVisitor[T] Visitor object to call.
- visitor
- Returns:
TResults of the visitor invocation.
- BooleanMetadata.equals(other: Any) bool#
Determine if the object is equal to the metadata.
- Parameters:
- other
Any Other object to compare this object to.
- other
- Returns:
- bool
Trueif the metadata objects are equal,Falseotherwise.
- BooleanMetadata.to_dict() dict#
Creates a dictionary representation of this object suitable for JSON serialization.
- Returns:
dictThe generated dictionary
- classmethod BooleanMetadata.from_dict(data) BooleanMetadata#
Creates a new metadata object from the data from a call to to_dict().
- Parameters:
- data
The serialized dictionary data.
- Returns:
CommonVariableMetadataThe new metadata object.