Class GreedyBranching

    • Constructor Detail

    • Method Detail

      • init

        public boolean init()
        Description copied from class: AbstractStrategy
        Prepare this to be used in a search loop The initialization can detect inconsistency, in that case, it returns false
        Overrides:
        init in class AbstractStrategy
      • remove

        public void remove()
        Description copied from class: AbstractStrategy
        Remove the current strategy. This implies unplugging variable or search monitors.
        Overrides:
        remove in class AbstractStrategy
      • getDecision

        public Decision getDecision()
        Description copied from class: AbstractStrategy
        Provides access to the current decision in the strategy. If there are no more decision to provide, it returns null.
        Specified by:
        getDecision in class AbstractStrategy
        Returns:
        the current decision
      • computeDecision

        public Decision computeDecision​(Variable variable)
        Description copied from class: AbstractStrategy
        Computes a decision to be applied to variable var This method should be implemented in order to use search patterns
        Overrides:
        computeDecision in class AbstractStrategy
        Parameters:
        variable - a variable
        Returns:
        a decision to be applied to variable var