Class AbstractLdoModality
- java.lang.Object
 - 
- net.sf.tweety.arg.dung.ldo.syntax.LdoFormula
 - 
- net.sf.tweety.arg.dung.ldo.syntax.AbstractLdoModality
 
 
 
- 
- All Implemented Interfaces:
 Formula,ClassicalFormula,Conjunctable,Disjunctable,Invertable,ProbabilityAware,SimpleLogicalFormula
- Direct Known Subclasses:
 AbstractGraphLdoModality,LdoBoxModality,LdoDiamondModality
public abstract class AbstractLdoModality extends LdoFormula
Provides common functionalities for all modalities in LDO.- Author:
 - Matthias Thimm
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private LdoFormulainnerFormulaThe inner formula of this modality 
- 
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()Creates a deep copy of this formulabooleanequals(java.lang.Object obj)java.util.Set<LdoArgument>getAtoms()Processes the set of all atoms which appear in this formulaLdoFormulagetInnerFormula()Returns the inner formula of this modality.java.util.Set<LdoFormula>getLiterals()Returns all literals, i.e.java.util.Set<PlPredicate>getPredicates()Processes the set of all predicates which appear in this formulainthashCode()- 
Methods inherited from class net.sf.tweety.arg.dung.ldo.syntax.LdoFormula
combineWithAnd, combineWithOr, complement, getDividers, getPredicateCls, getSignature, getUniformProbability, isLiteral 
 - 
 
 - 
 
- 
- 
Field Detail
- 
innerFormula
private LdoFormula innerFormula
The inner formula of this modality 
 - 
 
- 
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 java.util.Set<LdoArgument> getAtoms()
Description copied from interface:SimpleLogicalFormulaProcesses the set of all atoms which appear in this formula- Specified by:
 getAtomsin interfaceSimpleLogicalFormula- Specified by:
 getAtomsin classLdoFormula- Returns:
 - The set of all atoms
 
 
- 
getInnerFormula
public LdoFormula getInnerFormula()
Returns the inner formula of this modality.- Returns:
 - the inner formula of this modality.
 
 
- 
getPredicates
public java.util.Set<PlPredicate> getPredicates()
Description copied from interface:SimpleLogicalFormulaProcesses the set of all predicates which appear in this formula- Specified by:
 getPredicatesin interfaceSimpleLogicalFormula- Specified by:
 getPredicatesin classLdoFormula- Returns:
 - all predicates that appear in this formula
 
 
- 
getLiterals
public java.util.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 interfaceSimpleLogicalFormula- Specified by:
 hashCodein classLdoFormula
 
- 
equals
public boolean equals(java.lang.Object obj)
- Specified by:
 equalsin interfaceSimpleLogicalFormula- Specified by:
 equalsin classLdoFormula
 
- 
clone
public abstract LdoFormula clone()
Description copied from interface:SimpleLogicalFormulaCreates a deep copy of this formula- Specified by:
 clonein interfaceSimpleLogicalFormula- Specified by:
 clonein classLdoFormula- Returns:
 - the cloned formula
 
 
 - 
 
 -