public class Proposition extends PropositionalFormula implements net.sf.tweety.logics.commons.syntax.interfaces.Atom, Comparable<Proposition>
| Constructor and Description |
|---|
Proposition()
Default-Ctor for dynamic instantiation
|
Proposition(Proposition other) |
Proposition(String name)
Creates a new proposition of the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> arg) |
Proposition |
clone() |
PropositionalFormula |
collapseAssociativeFormulas()
This method collapses all associative operations appearing
in this term, e.g.
|
int |
compareTo(Proposition o) |
boolean |
equals(Object obj) |
List<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> |
getArguments() |
Set<Proposition> |
getAtoms() |
Set<PropositionalFormula> |
getLiterals()
Returns all literals, i.e.
|
Set<PossibleWorld> |
getModels(PropositionalSignature sig)
Returns the set of models of this formula wrt.
|
String |
getName() |
PropositionalPredicate |
getPredicate() |
Set<PropositionalPredicate> |
getPredicates() |
PropositionalSignature |
getSignature() |
int |
hashCode() |
boolean |
isComplete() |
boolean |
isLiteral() |
int |
numberOfOccurrences(Proposition p)
Returns the number of occurrences of the given proposition
within this formula
|
PropositionalFormula |
replace(Proposition p,
PropositionalFormula f,
int i)
Replaces the ith instance of the proposition p by f.
|
net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATE |
setPredicate(net.sf.tweety.logics.commons.syntax.Predicate predicate) |
Conjunction |
toCnf()
This method returns this formula in conjunctive normal form (CNF).
|
PropositionalFormula |
toNnf()
This method returns this formula in negation normal form (NNF).
|
String |
toString() |
PropositionalFormula |
trim()
Removes duplicates (identical formulas) from conjunctions and disjunctions and
duplicate negations.
|
combineWithAnd, combineWithOr, complement, getModels, getPredicateCls, getPrimeImplicants, getUniformProbability, isConjunctiveClause, resolvableWith, resolveWith, toBlakeCanonicalForm, toDnfpublic Proposition()
public Proposition(String name)
name - the name of the proposition.public Proposition(Proposition other)
public String getName()
getName in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic PropositionalPredicate getPredicate()
getPredicate in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic Set<PropositionalPredicate> getPredicates()
getPredicates in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetPredicates in class PropositionalFormulapublic PropositionalFormula collapseAssociativeFormulas()
PropositionalFormulacollapseAssociativeFormulas in class PropositionalFormulapublic PropositionalSignature getSignature()
getSignature in interface net.sf.tweety.commons.FormulagetSignature in class PropositionalFormulapublic int hashCode()
hashCode in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulahashCode in class PropositionalFormulapublic boolean equals(Object obj)
equals in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaequals in class PropositionalFormulapublic PropositionalFormula toNnf()
PropositionalFormulatoNnf in class PropositionalFormulapublic Proposition clone()
clone in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaclone in class PropositionalFormulapublic PropositionalFormula trim()
PropositionalFormulatrim in class PropositionalFormulapublic void addArgument(net.sf.tweety.logics.commons.syntax.interfaces.Term<?> arg)
addArgument in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic List<? extends net.sf.tweety.logics.commons.syntax.interfaces.Term<?>> getArguments()
getArguments in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic boolean isComplete()
isComplete in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic Set<Proposition> getAtoms()
getAtoms in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulagetAtoms in class PropositionalFormulapublic boolean isLiteral()
isLiteral in interface net.sf.tweety.logics.commons.syntax.interfaces.SimpleLogicalFormulaisLiteral in class PropositionalFormulapublic Set<PropositionalFormula> getLiterals()
PropositionalFormulagetLiterals in class PropositionalFormulapublic net.sf.tweety.logics.commons.syntax.interfaces.Atom.RETURN_SET_PREDICATE setPredicate(net.sf.tweety.logics.commons.syntax.Predicate predicate)
setPredicate in interface net.sf.tweety.logics.commons.syntax.interfaces.Atompublic int compareTo(Proposition o)
compareTo in interface Comparable<Proposition>public Conjunction toCnf()
PropositionalFormulatoCnf in class PropositionalFormulapublic int numberOfOccurrences(Proposition p)
PropositionalFormulanumberOfOccurrences in class PropositionalFormulap - some propositionpublic PropositionalFormula replace(Proposition p, PropositionalFormula f, int i)
PropositionalFormulareplace in class PropositionalFormulap - some propositionf - some formulai - the index of the propositionpublic Set<PossibleWorld> getModels(PropositionalSignature sig)
PropositionalFormulagetModels in class PropositionalFormulasig - some propositional signatureCopyright © 2018. All rights reserved.