IntegerMetadata#
- class IntegerMetadata#
Bases: ansys.tools.variableinterop.numeric_metadata.NumericMetadata
Provides metadata for INTEGER
and INTEGER_ARRAY
variable types.
Overview#
Invoke the visitor pattern of this object using the passed-in visitor |
|
Determine if a given metadata is equal to this metadata. |
Variable type of the object. |
|
Hard lower bound for the variable. |
|
Hard upper bound for the variable. |
|
List of enumerated values. |
|
List of enumerated aliases. |
Determine if the object is equal to the metadata. |
Import detail#
from ansys.tools.variableinterop.scalar_metadata import IntegerMetadata
Property detail#
- property IntegerMetadata.variable_type: VariableType#
Variable type of the object.
- Returns:
VariableType
Variable type of the object.
- property IntegerMetadata.lower_bound: ansys.tools.variableinterop.scalar_values.IntegerValue | None#
Hard lower bound for the variable.
Systems utilizing this variable should prevent setting the value below this lower bound. This is typically used to represent physical impossibilities (negative length) or limits of the simulation software. Values below this hard lower bound cause an error or invalid result. This may not be the soft bounds used for an optimization design parameter or DOE exploration.
- Returns:
Optional
[IntegerValue
]Lower bound or
None
if no lower bound is specified.
- property IntegerMetadata.upper_bound: ansys.tools.variableinterop.scalar_values.IntegerValue | None#
Hard upper bound for the variable.
Systems utilizing this variable should prevent setting the value above this upper bound. This is typically used to represent physical impossibilities (100%) or limits of the simulation software. Values above this hard upper bound cause an error or invalid result. This may not be the soft bounds used for an optimization design parameter or DOE exploration.
- Returns:
Optional
[IntegerValue
]Upper bound or
None
if no upper bound is specified.
- property IntegerMetadata.enumerated_values: List[ansys.tools.variableinterop.scalar_values.IntegerValue]#
List of enumerated values.
This list may be empty to imply that there are no enumerated values.
- Returns:
List
[IntegerValue
]List of enumerated values.
Method detail#
- IntegerMetadata.__eq__(other)#
Determine if the object is equal to the metadata.
- IntegerMetadata.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:
T
Results of the visitor invocation.