Package net.sf.tweety.logics.dl.syntax
Class Complement
- java.lang.Object
-
- net.sf.tweety.logics.dl.syntax.ComplexConcept
-
- net.sf.tweety.logics.dl.syntax.Complement
-
- 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
public class Complement extends ComplexConcept
This class models the complement (negation) in description logics.- Author:
- Anna Gessler
-
-
Constructor Summary
Constructors Constructor Description Complement(ComplexConcept formula)Create a new complement with the given DLFormula.
-
Method Summary
Modifier and Type Method Description ComplexConceptclone()Creates a deep copy of this formulaComplexConceptcollapseAssociativeFormulas()This method collapses all associative operations appearing in this term, e.g.booleanequals(Object obj)ComplexConceptgetFormula()Set<net.sf.tweety.logics.commons.syntax.Predicate>getPredicates()DlSignaturegetSignature()inthashCode()booleanisLiteral()StringtoString()-
Methods inherited from class net.sf.tweety.logics.dl.syntax.ComplexConcept
combineWithAnd, combineWithOr, complement, getAtoms, getPredicateCls, getUniformProbability
-
-
-
-
Constructor Detail
-
Complement
public Complement(ComplexConcept formula)
Create a new complement with the given DLFormula.- Parameters:
formula- some concept
-
-
Method Detail
-
getPredicates
public Set<net.sf.tweety.logics.commons.syntax.Predicate> getPredicates()
- Specified by:
getPredicatesin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
getPredicatesin classComplexConcept
-
clone
public ComplexConcept clone()
Description copied from class:ComplexConceptCreates a deep copy of this formula- Specified by:
clonein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
clonein classComplexConcept
-
collapseAssociativeFormulas
public ComplexConcept collapseAssociativeFormulas()
Description copied from class:ComplexConceptThis method collapses all associative operations appearing in this term, e.g. every a||(b||c) becomes a||b||c.- Specified by:
collapseAssociativeFormulasin classComplexConcept- Returns:
- the collapsed formula.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
hashCodein classComplexConcept
-
isLiteral
public boolean isLiteral()
-
getFormula
public ComplexConcept getFormula()
-
getSignature
public DlSignature getSignature()
- Specified by:
getSignaturein interfacenet.sf.tweety.commons.Formula- Specified by:
getSignaturein classComplexConcept
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacenet.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormula- Specified by:
equalsin classComplexConcept
-
-