Class LdoNegation
java.lang.Object
org.tweetyproject.arg.dung.ldo.syntax.LdoFormula
org.tweetyproject.arg.dung.ldo.syntax.LdoNegation
- All Implemented Interfaces:
Formula,ClassicalFormula,Conjunctable,Disjunctable,Invertable,ProbabilityAware,SimpleLogicalFormula
This class models classical negation of ldo logic.
- Author:
- Matthias Thimm, Tim Janus
-
Constructor Summary
ConstructorsConstructorDescriptionLdoNegation(LdoFormula formula) Creates a new negation with the given formula. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a deep copy of this formulabooleangetAtoms()Processes the set of all atoms which appear in this formulaReturns the formula within this negation.Returns all literals, i.e.Processes the set of all predicates which appear in this formulaReturns the signature of the language of this formula.inthashCode()booleantoString()Methods inherited from class org.tweetyproject.arg.dung.ldo.syntax.LdoFormula
combineWithAnd, combineWithOr, complement, getDividers, getPredicateCls, getUniformProbability
-
Constructor Details
-
LdoNegation
Creates a new negation with the given formula.- Parameters:
formula- the formula within the negation.
-
-
Method Details
-
getFormula
Returns the formula within this negation.- Returns:
- the formula within this negation.
-
toString
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceSimpleLogicalFormula- Specified by:
hashCodein classLdoFormula
-
equals
- Specified by:
equalsin interfaceSimpleLogicalFormula- Specified by:
equalsin classLdoFormula
-
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
-
clone
Description copied from interface:SimpleLogicalFormulaCreates a deep copy of this formula- Specified by:
clonein interfaceSimpleLogicalFormula- Specified by:
clonein classLdoFormula- Returns:
- the cloned formula
-
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
-
isLiteral
public boolean isLiteral()- Specified by:
isLiteralin interfaceSimpleLogicalFormula- Overrides:
isLiteralin classLdoFormula- Returns:
- true if the formula represents a literal in the language or false otherwise
-
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.
-
getSignature
Description copied from interface:FormulaReturns the signature of the language of this formula.- Specified by:
getSignaturein interfaceFormula- Overrides:
getSignaturein classLdoFormula- Returns:
- the signature of the language of this formula.
-