Class DominanceChecker<T>

java.lang.Object
org.ddolib.layered.modeling.DominanceChecker<T>
Type Parameters:
T - the type of states
Direct Known Subclasses:
DefaultDominanceChecker, MispDominanceChecker, SimpleDominanceChecker

public abstract class DominanceChecker<T> extends Object
Object that, given a dominance, will check if a state is dominated.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Dominance<T>
    The dominance relation used to compare states.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a new dominance checker relying on the given dominance relation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears the dominance checker state.
    abstract boolean
    updateDominance(T state, int depth, double objValue)
    Checks whether the input state is dominated and updates the front of non-dominated nodes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dominance

      protected final Dominance<T> dominance
      The dominance relation used to compare states.
  • Constructor Details

    • DominanceChecker

      protected DominanceChecker(Dominance<T> dominance)
      Creates a new dominance checker relying on the given dominance relation.
      Parameters:
      dominance - the dominance relation used to compare states
  • Method Details

    • updateDominance

      public abstract boolean updateDominance(T state, int depth, double objValue)
      Checks whether the input state is dominated and updates the front of non-dominated nodes.
      Parameters:
      state - the state on which test dominance
      depth - the depth of the state in the MDD
      objValue - the length of the longest path from the root to the input state
      Returns:
      whether the input state is dominated
    • clear

      public void clear()
      Clears the dominance checker state. This is useful for search algorithms that restart and need to clear previously cached dominance relations.