Module logicng

Class BackboneFunction

  • All Implemented Interfaces:
    SolverFunction<Backbone>

    public final class BackboneFunction
    extends Object
    implements SolverFunction<Backbone>
    A solver function which computes a backbone for the formula on the solver.

    Backbone functions are instantiated via their builder builder().

    Since:
    2.0.0
    Version:
    2.1.0
    • Method Detail

      • builder

        public static BackboneFunction.Builder builder()
        Returns the builder for this function.
        Returns:
        the builder
      • apply

        public Backbone apply​(MiniSat solver,
                              Consumer<Tristate> resultSetter)
        Description copied from interface: SolverFunction
        Applies this function to the given solver.
        Specified by:
        apply in interface SolverFunction<Backbone>
        Parameters:
        solver - the solver on which the function should work on
        resultSetter - a setter for the result of the solver
        Returns:
        the result of the function application