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 SummaryNested classes/interfaces inherited from interface tools.refinery.interpreter.localsearch.operations.ISearchOperationISearchOperation.ISearchOperationExecutor
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
createExecutorDescription copied from interface:ISearchOperationInitializes a new operation executor for the given operation. Repeated calls must return different executor instances.- Specified by:
- createExecutorin interface- ISearchOperation
 
- 
getVariablePositions- Specified by:
- getVariablePositionsin interface- ISearchOperation
- Returns:
- the ordered list of the variable numbers that are affected by the search operation
 
- 
toString
- 
toStringDescription copied from interface:ISearchOperationCreates 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 aNullPointerExceptionwill be thrown during the calculation of the string.- Specified by:
- toStringin interface- ISearchOperation
 
 
-