Module logicng

Class LiteralsFunction

    • Method Detail

      • get

        public static LiteralsFunction get()
        Returns the singleton of the function.
        Returns:
        the function instance
      • apply

        public SortedSet<Literal> apply​(Formula formula,
                                        boolean cache)
        Description copied from interface: FormulaFunction
        Applies this function to a given formula.
        Specified by:
        apply in interface FormulaFunction<SortedSet<Literal>>
        Parameters:
        formula - the input formula
        cache - indicates whether the result should be cached in this formula's cache
        Returns:
        the result of the application