Class PlSignature

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<Proposition>, Signature

    public class PlSignature
    extends SingleSetSignature<Proposition>
    This class captures the signature of a specific propositional language.
    Author:
    Matthias Thimm, Sebastian Homann
    • Constructor Detail

      • PlSignature

        public PlSignature()
        Creates a new (empty) propositional signature.
      • PlSignature

        public PlSignature​(java.util.Collection<? extends Proposition> propositions)
        Creates a new propositional signature with the given set of propositions.
        Parameters:
        propositions - a set of propositions.
      • PlSignature

        public PlSignature​(int numvars)
        Creates a new propositional signature with the given number of propositions (named "A0"..."Anumvars".
        Parameters:
        numvars - the number of variables.
      • PlSignature

        public PlSignature​(PlSignature sig)
        Creates a new propositional signature that is a copy of the given signature.
        Parameters:
        sig - a signature
    • Method Detail

      • getSignature

        public static PlSignature getSignature​(java.util.Collection<? extends PlFormula> formulas)
        Returns the set of atoms appearing in the given collection of formulas.
        Parameters:
        formulas - a set of propositional formulas
        Returns:
        the signature of the formulas.
      • add

        public void add​(java.lang.Object obj)
        Description copied from interface: Signature
        Adds the given formula to this signature.
        Parameters:
        obj - some object