Package org.ddolib.nolayer.modeling
Class DefaultNoLayerDominanceChecker<T>
java.lang.Object
org.ddolib.nolayer.modeling.DefaultNoLayerDominanceChecker<T>
- Type Parameters:
T- the type representing the problem state
- All Implemented Interfaces:
NoLayerDominanceChecker<T>
Default implementation of a
NoLayerDominanceChecker that performs no dominance checking.
This class can be used as a placeholder when dominance pruning is not required or when a problem does not define any dominance relation between states: it never reports any state as dominated.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this default dominance checker. -
Method Summary
Modifier and TypeMethodDescriptionbooleanupdateDominance(T state, double value) Updates the dominance information for a given state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ddolib.nolayer.modeling.NoLayerDominanceChecker
clear
-
Constructor Details
-
DefaultNoLayerDominanceChecker
public DefaultNoLayerDominanceChecker()Creates a new instance of this default dominance checker.
-
-
Method Details
-
updateDominance
Updates the dominance information for a given state.This implementation always returns
false, meaning that no state is ever considered dominated or pruned.- Specified by:
updateDominancein interfaceNoLayerDominanceChecker<T>- Parameters:
state- the state being tested for dominancevalue- the objective value associated with the state- Returns:
- always
false, since no dominance checking is applied
-