public class Possibility extends ModalFormula
| Constructor and Description |
|---|
Possibility(RelationalFormula formula)
Creates a new possibility formula with the
given inner formula
|
| Modifier and Type | Method and Description |
|---|---|
FolFormula |
clone()
Creates a deep copy of this formula
|
RelationalFormula |
collapseAssociativeFormulas()
This method collapses all associative operations appearing
in this term, e.g.
|
boolean |
isDnf()
Checks whether this formula is in disjunctive normal form.
|
FolFormula |
substitute(Term<?> v,
Term<?> t)
Substitutes all occurrences of term "v" in this formula
by term "t" and returns the new formula.
|
FolFormula |
toNnf()
Makes the negation normal form of this formula.
|
java.lang.String |
toString() |
combineWithAnd, combineWithOr, complement, containsModalityOperator, containsQuantifier, equals, getAtoms, getFormula, getFunctors, getPredicates, getQuantifierVariables, getSignature, getTerms, getTerms, getUnboundVariables, getUniformProbability, hashCode, isClosed, isClosed, isLiteral, isWellBound, isWellBoundtoDnfallGroundInstances, allSubstitutions, containsTermsOfType, exchange, getPredicateCls, getSatisfactionRatio, isGround, isWellFormed, substitutepublic Possibility(RelationalFormula formula)
formula - a formula, either a modal formula or a first-order formula.public FolFormula substitute(Term<?> v, Term<?> t) throws java.lang.IllegalArgumentException
RelationalFormulasubstitute in interface ComplexLogicalFormulasubstitute in class FolFormulav - the term to be substituted.t - the term to substitute.java.lang.IllegalArgumentException - if "v" and "t" are of different sorts
(NOTE: this exception is only thrown when "v" actually appears in this
formula).public java.lang.String toString()
toString in class RelationalFormulapublic FolFormula clone()
SimpleLogicalFormulaclone in interface ComplexLogicalFormulaclone in interface SimpleLogicalFormulaclone in class FolFormulapublic FolFormula toNnf()
FolFormulatoNnf in class FolFormulapublic RelationalFormula collapseAssociativeFormulas()
FolFormulacollapseAssociativeFormulas in class FolFormulapublic boolean isDnf()
FolFormulaisDnf in class FolFormula