Interface SimpleLogicalFormula
-
- All Superinterfaces:
net.sf.tweety.commons.Formula
- All Known Subinterfaces:
AssociativeFormula<T>,Atom,ClassicalFormula,ComplexLogicalFormula,Conjunctable,Disjunctable,Invertable,QuantifiedFormula
- All Known Implementing Classes:
AssociativeFormulaSupport,ComplexLogicalFormulaAdapter,RelationalFormula
public interface SimpleLogicalFormula extends net.sf.tweety.commons.FormulaA formula of a logical language- Author:
- Tim Janus
-
-
Method Summary
Modifier and Type Method Description SimpleLogicalFormulaclone()Creates a deep copy of this formulabooleanequals(Object other)Set<? extends Atom>getAtoms()Processes the set of all atoms which appear in this formulaClass<? extends Predicate>getPredicateCls()Set<? extends Predicate>getPredicates()Processes the set of all predicates which appear in this formulainthashCode()booleanisLiteral()
-
-
-
Method Detail
-
getAtoms
Set<? extends Atom> getAtoms()
Processes the set of all atoms which appear in this formula- Returns:
- The set of all atoms
-
getPredicates
Set<? extends Predicate> getPredicates()
Processes the set of all predicates which appear in this formula- Returns:
- all predicates that appear in this formula
-
getPredicateCls
Class<? extends Predicate> getPredicateCls()
- Returns:
- The class description of the predicate used by this formula.
-
isLiteral
boolean isLiteral()
- Returns:
- true if the formula represents a literal in the language or false otherwise
-
clone
SimpleLogicalFormula clone()
Creates a deep copy of this formula- Returns:
- the cloned formula
-
-