IVariableValueVisitor#
- class ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor#
Bases:
abc.ABC,Generic[T]Defines the interface to be implemented for using the visitor pattern with variable values.
To use an implementation of this interface, create and pass an instance to the
IVariableValue.accept()method.
Overview#
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the :meth:`IVariableValue.accept() method is called |
|
Method that is called if the |
|
Method that is called if the |
|
Method that is called if the |
Import detail#
from ansys.tools.variableinterop.ivariable_visitor import IVariableValueVisitor
Method detail#
- abstractmethod IVariableValueVisitor.visit_integer(value: ansys.tools.variableinterop.scalar_values.IntegerValue) T#
Method that is called if the
IVariableValue.accept()method is called on anIntegerValuetype.- Parameters:
- value
IntegerValue IntegerValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod IVariableValueVisitor.visit_real(value: ansys.tools.variableinterop.scalar_values.RealValue) T#
Method that is called if the
IVariableValue.accept()method is called on aRealValuetype.- Parameters:
- value
RealValue RealValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod IVariableValueVisitor.visit_boolean(value: ansys.tools.variableinterop.scalar_values.BooleanValue) T#
Method that is called if the
IVariableValue.accept()method is called on aBooleanValuetype.- Parameters:
- value
BooleanValue BooleanValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod IVariableValueVisitor.visit_string(value: ansys.tools.variableinterop.scalar_values.StringValue) T#
Method that is called if the
IVariableValue.accept()method is called on aStringValuetype.- Parameters:
- value
StringValue StringValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod IVariableValueVisitor.visit_integer_array(value: ansys.tools.variableinterop.array_values.IntegerArrayValue) T#
Method that is called if the
IVariableValue.accept()method is called on anIntegerArrayValuetype.- Parameters:
- value
IntegerArrayValue IntegerArrayValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod IVariableValueVisitor.visit_file(value: ansys.tools.variableinterop.file_value.FileValue) T#
Method that is called if the
IVariableValue.accept()method is called on aFileValuetype.- Parameters:
- value
FileValue FileValuetype to visit.
- value
- Returns:
TResult
- abstractmethod IVariableValueVisitor.visit_real_array(value: ansys.tools.variableinterop.array_values.RealArrayValue) T#
Method that is called if the :meth:`IVariableValue.accept() method is called on a
RealArrayValuetype.- Parameters:
- value
RealArrayValue RealArrayValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod IVariableValueVisitor.visit_boolean_array(value: ansys.tools.variableinterop.array_values.BooleanArrayValue) T#
Method that is called if the
IVariableValue.accept()method is called on aBooleanArrayValuetype.- Parameters:
- value
BooleanArrayValue BooleanArrayValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod IVariableValueVisitor.visit_string_array(value: ansys.tools.variableinterop.array_values.StringArrayValue) T#
Method that is called if the
IVariableValue.accept()method is called on aStringArrayValuetype.- Parameters:
- value
StringArrayValue StringArrayValuetype to visit.
- value
- Returns:
TResult.
- abstractmethod IVariableValueVisitor.visit_file_array(value: ansys.tools.variableinterop.file_array_value.FileArrayValue) T#
Method that is called if the
IVariableValue.accept()method is called on aFileArrayValuetype.- Parameters:
- value
FileArrayValue FileArrayValuetype to visit.
- value
- Returns:
TResult.