Class CheckConstant
java.lang.Object
tools.refinery.interpreter.localsearch.operations.check.CheckConstant
- All Implemented Interfaces:
ISearchOperation
This operation handles constants in search plans by checking if a variable is bound to a certain constant value. Such
operations should be executed as early as possible during plan execution.
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.refinery.interpreter.localsearch.operations.ISearchOperation
ISearchOperation.ISearchOperationExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInitializes a new operation executor for the given operation.toString()
Creates a string representation of the search operation by replacing the variable numbers according to the parameter function.
-
Constructor Details
-
CheckConstant
-
-
Method Details
-
createExecutor
Description copied from interface:ISearchOperation
Initializes a new operation executor for the given operation. Repeated calls must return different executor instances.- Specified by:
createExecutor
in interfaceISearchOperation
-
getVariablePositions
- Specified by:
getVariablePositions
in interfaceISearchOperation
- Returns:
- the ordered list of the variable numbers that are affected by the search operation
-
toString
-
toString
Description copied from interface:ISearchOperation
Creates a string representation of the search operation by replacing the variable numbers according to the parameter function. It is expected that the provided function does return a non-null value for each variable index that is returned byISearchOperation.getVariablePositions()
; otherwise aNullPointerException
will be thrown during the calculation of the string.- Specified by:
toString
in interfaceISearchOperation
-