Module logicng

Class BackboneFunction.Builder

  • Enclosing class:
    BackboneFunction

    public static class BackboneFunction.Builder
    extends Object
    The builder for a backbone function.
    • Method Detail

      • handler

        public BackboneFunction.Builder handler​(SATHandler handler)
        Sets the SAT handler for this function.
        Parameters:
        handler - the handler
        Returns:
        the current builder
      • variables

        public BackboneFunction.Builder variables​(Collection<Variable> variables)
        Sets the variables which are relevant for the backbone computation.
        Parameters:
        variables - the variables
        Returns:
        the current builder
      • variables

        public BackboneFunction.Builder variables​(Variable... variables)
        Sets the variables which are relevant for the backbone computation.
        Parameters:
        variables - the variables
        Returns:
        the current builder
      • type

        public BackboneFunction.Builder type​(BackboneType type)
        Sets the type of backbone which should be computed (default: POSITIVE_AND_NEGATIVE).
        Parameters:
        type - the backbone type
        Returns:
        the current builder
      • build

        public BackboneFunction build()
        Builds the backbone function with the current builder's configuration.
        Returns:
        the backbone function