Class AbstractLdoModality

  • All Implemented Interfaces:
    net.sf.tweety.commons.Formula, net.sf.tweety.logics.commons.syntax.interfaces.ClassicalFormula, net.sf.tweety.logics.commons.syntax.interfaces.Conjunctable, net.sf.tweety.logics.commons.syntax.interfaces.Disjunctable, net.sf.tweety.logics.commons.syntax.interfaces.Invertable, net.sf.tweety.logics.commons.syntax.interfaces.ProbabilityAware, net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
    Direct Known Subclasses:
    AbstractGraphLdoModality, LdoBoxModality, LdoDiamondModality

    public abstract class AbstractLdoModality
    extends LdoFormula
    Provides common functionalities for all modalities in LDO.
    Author:
    Matthias Thimm
    • Constructor Detail

      • AbstractLdoModality

        public AbstractLdoModality​(LdoFormula innerFormula)
        Creates a new modality for the given inner formula
        Parameters:
        innerFormula - some ldo formula
    • Method Detail

      • getAtoms

        public Set<LdoArgument> getAtoms()
        Specified by:
        getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        getAtoms in class LdoFormula
      • getInnerFormula

        public LdoFormula getInnerFormula()
        Returns the inner formula of this modality.
        Returns:
        the inner formula of this modality.
      • getPredicates

        public Set<net.sf.tweety.logics.pl.syntax.PlPredicate> getPredicates()
        Specified by:
        getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        getPredicates in class LdoFormula
      • getLiterals

        public Set<LdoFormula> getLiterals()
        Description copied from class: LdoFormula
        Returns all literals, i.e. all formulas of the form "a" or "!a" where "a" is a proposition, that appear in this formula.
        Specified by:
        getLiterals in class LdoFormula
        Returns:
        all literals appearing in this formula.
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        hashCode in class LdoFormula
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        equals in class LdoFormula
      • clone

        public abstract LdoFormula clone()
        Specified by:
        clone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula
        Specified by:
        clone in class LdoFormula