Class AbstractLdoModality
- java.lang.Object
-
- net.sf.tweety.arg.dung.ldo.syntax.LdoFormula
-
- net.sf.tweety.arg.dung.ldo.syntax.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 Summary
Constructors Constructor Description AbstractLdoModality(LdoFormula innerFormula)Creates a new modality for the given inner formula
-
Method Summary
Modifier and Type Method Description abstract LdoFormulaclone()booleanequals(Object obj)Set<LdoArgument>getAtoms()LdoFormulagetInnerFormula()Returns the inner formula of this modality.Set<LdoFormula>getLiterals()Returns all literals, i.e.Set<net.sf.tweety.logics.pl.syntax.PlPredicate>getPredicates()inthashCode()-
Methods inherited from class net.sf.tweety.arg.dung.ldo.syntax.LdoFormula
combineWithAnd, combineWithOr, complement, getDividers, getPredicateCls, getSignature, getUniformProbability, isLiteral
-
-
-
-
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:
getAtomsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getAtomsin classLdoFormula
-
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:
getPredicatesin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getPredicatesin classLdoFormula
-
getLiterals
public Set<LdoFormula> getLiterals()
Description copied from class:LdoFormulaReturns all literals, i.e. all formulas of the form "a" or "!a" where "a" is a proposition, that appear in this formula.- Specified by:
getLiteralsin classLdoFormula- Returns:
- all literals appearing in this formula.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
hashCodein classLdoFormula
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
equalsin classLdoFormula
-
clone
public abstract LdoFormula clone()
- Specified by:
clonein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
clonein classLdoFormula
-
-