Uses of Class
net.sf.tweety.logics.commons.syntax.RelationalFormula
-
-
-
Uses of RelationalFormula in net.sf.tweety.action.description.reasoner
Methods in net.sf.tweety.action.description.reasoner with parameters of type RelationalFormula Modifier and Type Method Description private java.lang.StringCTransitionSystemCalculator. getAtomString(RelationalFormula f, int t)Utility function representing a given atom, either an actionname or a fluentname, to be used in a rule in an extended logic program. -
Uses of RelationalFormula in net.sf.tweety.action.description.syntax
Methods in net.sf.tweety.action.description.syntax with parameters of type RelationalFormula Modifier and Type Method Description protected booleanCLaw. isValidDefiniteHead(RelationalFormula pl)Checks if a propositional formula is a valid head formula for a definite causal law, which means either a contradiction, a fluent or the negation of a fluent. -
Uses of RelationalFormula in net.sf.tweety.arg.delp.syntax
Subclasses of RelationalFormula in net.sf.tweety.arg.delp.syntax Modifier and Type Class Description classDefeasibleRuleThis class models a defeasible rule in defeasible logic programming.classDelpFactThis class implements a fact in defeasible logic programming which encapsulates a literal.classDelpRuleThis method is the superclass for both a strict rule and a defeasible rule in defeasible logic programming and captures their common attributes and methods.classStrictRuleThis class models a strict rule in defeasible logic programming.Methods in net.sf.tweety.arg.delp.syntax that return RelationalFormula Modifier and Type Method Description RelationalFormulaDefeasibleRule. clone()RelationalFormulaStrictRule. clone()RelationalFormulaDelpRule. complement()RelationalFormulaDefeasibleRule. substitute(Term<?> v, Term<?> t)RelationalFormulaDelpFact. substitute(Term<?> v, Term<?> t)abstract RelationalFormulaDelpRule. substitute(Term<?> v, Term<?> t)RelationalFormulaStrictRule. substitute(Term<?> v, Term<?> t) -
Uses of RelationalFormula in net.sf.tweety.logics.commons.syntax
Classes in net.sf.tweety.logics.commons.syntax with type parameters of type RelationalFormula Modifier and Type Class Description classQuantifiedFormulaSupport<T extends RelationalFormula>This class provides common functionalities for quantified formulas, i.e.Fields in net.sf.tweety.logics.commons.syntax declared as RelationalFormula Modifier and Type Field Description private TQuantifiedFormulaSupport. innerFormulaThe formula this quantified formula ranges over.Methods in net.sf.tweety.logics.commons.syntax that return RelationalFormula Modifier and Type Method Description abstract RelationalFormulaRelationalFormula. clone()abstract RelationalFormulaRelationalFormula. complement()RelationalFormulaRelationalFormula. exchange(Term<?> v, Term<?> t)Substitutes all occurrences of term "v" in this formula by term "t" and at the same time replaces all occurrences of term "t" by term "v" and eventually returns the new formula.RelationalFormulaRelationalFormula. getFormula()RelationalFormulaRelationalFormula. substitute(java.util.Map<? extends Term<?>,? extends Term<?>> map)Substitutes all occurrences of all terms "v" in map.keyset() in this formula by map.get(v) and returns the new formula.
NOTE: variables bound to quantifiers are not substituted in their inner formulas even if they appear in the map.abstract RelationalFormulaRelationalFormula. substitute(Term<?> v, Term<?> t)Substitutes all occurrences of term "v" in this formula by term "t" and returns the new formula.Methods in net.sf.tweety.logics.commons.syntax that return types with arguments of type RelationalFormula Modifier and Type Method Description java.util.Set<RelationalFormula>RelationalFormula. allGroundInstances(java.util.Set<Constant> constants)Computes all ground instances of this relational formula wrt. -
Uses of RelationalFormula in net.sf.tweety.logics.fol.syntax
Subclasses of RelationalFormula in net.sf.tweety.logics.fol.syntax Modifier and Type Class Description classAssociativeFolFormulaThis class captures the common functionalities first order associative formulas like conjunction, disjunction, etc.classConjunctionThe classical conjunction of first-order logic.classContradictionA contradictory formula.classDisjunctionThe classical disjunction of first-order logic.classEquivalenceThe equivalence of first-order logic.classExistsQuantifiedFormulaExists-quantified first-order logic formula.classFolAtomAn atom in first-order logic, i.e.classFolFormulaThe common abstract class for formulas of first-order logic.classForallQuantifiedFormulaFor-All-quantified first-order logic formula.classImplicationThe implication of first-order logic.classNegationThe classical negation of first-order logic.classSpecialFormulaThis class captures the common functionalities of the special formulas tautology and contradiction.classTautologyA tautological formula.Fields in net.sf.tweety.logics.fol.syntax with type parameters of type RelationalFormula Modifier and Type Field Description private Pair<RelationalFormula,RelationalFormula>Equivalence. formulasThe pair of formulas that are part of the equivalence.private Pair<RelationalFormula,RelationalFormula>Equivalence. formulasThe pair of formulas that are part of the equivalence.private Pair<RelationalFormula,RelationalFormula>Implication. formulasThe pair of formulas that are part of the implication.private Pair<RelationalFormula,RelationalFormula>Implication. formulasThe pair of formulas that are part of the implication.protected AssociativeFormulaSupport<RelationalFormula>AssociativeFolFormula. supportThis helper class implements most of the common functionality of an associative formula, so the implementation can delegate the method calls to the support class.Methods in net.sf.tweety.logics.fol.syntax that return RelationalFormula Modifier and Type Method Description RelationalFormulaConjunction. collapseAssociativeFormulas()RelationalFormulaDisjunction. collapseAssociativeFormulas()RelationalFormulaEquivalence. collapseAssociativeFormulas()abstract RelationalFormulaFolFormula. collapseAssociativeFormulas()This method collapses all associative operations appearing in this term, e.g.RelationalFormulaImplication. collapseAssociativeFormulas()RelationalFormulaFolFormula. complement()RelationalFormulaAssociativeFolFormula. get(int index)RelationalFormulaAssociativeFolFormula. remove(int index)RelationalFormulaAssociativeFolFormula. set(int index, RelationalFormula element)Methods in net.sf.tweety.logics.fol.syntax that return types with arguments of type RelationalFormula Modifier and Type Method Description java.util.List<RelationalFormula>AssociativeFolFormula. getFormulas()Pair<RelationalFormula,RelationalFormula>Equivalence. getFormulas()Returns the formulas of the equivalence.Pair<RelationalFormula,RelationalFormula>Equivalence. getFormulas()Returns the formulas of the equivalence.Pair<RelationalFormula,RelationalFormula>Implication. getFormulas()Returns the formulas of the implication.Pair<RelationalFormula,RelationalFormula>Implication. getFormulas()Returns the formulas of the implication.java.util.Iterator<RelationalFormula>AssociativeFolFormula. iterator()java.util.ListIterator<RelationalFormula>AssociativeFolFormula. listIterator()java.util.ListIterator<RelationalFormula>AssociativeFolFormula. listIterator(int index)java.util.List<RelationalFormula>AssociativeFolFormula. subList(int fromIndex, int toIndex)Methods in net.sf.tweety.logics.fol.syntax with parameters of type RelationalFormula Modifier and Type Method Description voidAssociativeFolFormula. add(int index, RelationalFormula element)booleanAssociativeFolFormula. add(RelationalFormula e)RelationalFormulaAssociativeFolFormula. set(int index, RelationalFormula element)Method parameters in net.sf.tweety.logics.fol.syntax with type arguments of type RelationalFormula Modifier and Type Method Description booleanAssociativeFolFormula. addAll(int index, java.util.Collection<? extends RelationalFormula> c)booleanAssociativeFolFormula. addAll(java.util.Collection<? extends RelationalFormula> c)voidEquivalence. setFormulas(Pair<RelationalFormula,RelationalFormula> formulas)Sets the formulas of the equivalence.voidEquivalence. setFormulas(Pair<RelationalFormula,RelationalFormula> formulas)Sets the formulas of the equivalence.voidImplication. setFormulas(Pair<RelationalFormula,RelationalFormula> formulas)Sets the formulas of the implication.voidImplication. setFormulas(Pair<RelationalFormula,RelationalFormula> formulas)Sets the formulas of the implication.Constructors in net.sf.tweety.logics.fol.syntax with parameters of type RelationalFormula Constructor Description AssociativeFolFormula(RelationalFormula first, RelationalFormula second)Creates a new associative formula with the two given formulaeConjunction(RelationalFormula first, RelationalFormula second)Creates a new conjunction with the two given formulaeDisjunction(RelationalFormula first, RelationalFormula second)Creates a new disjunction with the two given formulaeEquivalence(RelationalFormula a, RelationalFormula b)Creates a new equivalence with the given two formulasExistsQuantifiedFormula(RelationalFormula folFormula, java.util.Set<Variable> variables)Creates a new quantified folFormula with the given folFormula and variables.ExistsQuantifiedFormula(RelationalFormula folFormula, Variable variable)Creates a new quantified folFormula with the given folFormula and variable.ForallQuantifiedFormula(RelationalFormula folFormula, java.util.Set<Variable> variables)Creates a new quantified folFormula with the given folFormula and variables.ForallQuantifiedFormula(RelationalFormula folFormula, Variable variable)Creates a new quantified folFormula with the given folFormula and variable.Implication(RelationalFormula a, RelationalFormula b)Creates a new implication a=>b with the two given formulasNegation(RelationalFormula formula)Constructor parameters in net.sf.tweety.logics.fol.syntax with type arguments of type RelationalFormula Constructor Description AssociativeFolFormula(java.util.Collection<? extends RelationalFormula> formulas)Creates a new associative formula with the given inner formulas.Conjunction(java.util.Collection<? extends RelationalFormula> formulas)Creates a new conjunction with the given inner formulas.Disjunction(java.util.Collection<? extends RelationalFormula> formulas)Creates a new disjunction with the given inner formulas.Equivalence(Pair<RelationalFormula,RelationalFormula> formulas)Creates a new equivalence with the given pair of formulasEquivalence(Pair<RelationalFormula,RelationalFormula> formulas)Creates a new equivalence with the given pair of formulasImplication(Pair<RelationalFormula,RelationalFormula> formulas)Creates a new implication with the given pair of formulasImplication(Pair<RelationalFormula,RelationalFormula> formulas)Creates a new implication with the given pair of formulas -
Uses of RelationalFormula in net.sf.tweety.logics.fol.writer
Methods in net.sf.tweety.logics.fol.writer with parameters of type RelationalFormula Modifier and Type Method Description private java.lang.StringProver9Writer. printFormula(RelationalFormula f)Creates a representation of a formula in Prover9 format.private java.lang.StringSPASSWriter. printFormula(RelationalFormula f)private java.lang.StringTPTPWriter. printFormula(RelationalFormula f)Creates a TPTP representation of a formula.private java.lang.StringSPASSWriter. printFormulas(FolBeliefSet kb, RelationalFormula formula)Prints the axioms declaration and conjectures declaration for a SPASS input file.voidSPASSWriter. printProblem(FolBeliefSet kb, RelationalFormula formula)Prints the contents of a SPASS problem file for a given knowledge base and a formula. -
Uses of RelationalFormula in net.sf.tweety.logics.ml.parser
Methods in net.sf.tweety.logics.ml.parser that return RelationalFormula Modifier and Type Method Description private RelationalFormulaMlParser. parseAtomic(java.util.List<java.lang.Object> l)Parses a simple formula as a list of String tokens or formulas into a fol formula.private RelationalFormulaMlParser. parseConjunction(java.util.List<java.lang.Object> l)Parses a simple conjunction as a list of String tokens or formulas into a fol formula.private RelationalFormulaMlParser. parseDisjunction(java.util.List<java.lang.Object> l)Parses a disjunction as a list of String tokens or formulas into a fol formula.private RelationalFormulaMlParser. parseEquivalence(java.util.List<java.lang.Object> l)Parses an equivalence as a list of String tokens or formulas into a fol formula.RelationalFormulaMlParser. parseFormula(java.io.Reader reader)private RelationalFormulaMlParser. parseImplication(java.util.List<java.lang.Object> l)Parses an implication as a list of String tokens or formulas into a fol formula.private RelationalFormulaMlParser. parseModalization(java.util.List<java.lang.Object> l)Parses a formula containing at least one modal operator as a list of String tokens or formulas.private RelationalFormulaMlParser. parseNegation(java.util.List<java.lang.Object> l)Parses a simple formula as a list of String tokens or formulas into a fol formula.private RelationalFormulaMlParser. parseQuantification(java.util.List<java.lang.Object> l)Parses a quantified formula as a list of String tokens or formulas. -
Uses of RelationalFormula in net.sf.tweety.logics.ml.syntax
Subclasses of RelationalFormula in net.sf.tweety.logics.ml.syntax Modifier and Type Class Description classMlFormulaThis class models a modal formula, i.e.classNecessityThis class models the necessity modality.classPossibilityThis class models the possibility modality.Fields in net.sf.tweety.logics.ml.syntax declared as RelationalFormula Modifier and Type Field Description private RelationalFormulaMlFormula. formulaThe inner formula of this modal formulaMethods in net.sf.tweety.logics.ml.syntax that return RelationalFormula Modifier and Type Method Description RelationalFormulaNecessity. collapseAssociativeFormulas()RelationalFormulaPossibility. collapseAssociativeFormulas()RelationalFormulaMlFormula. complement()RelationalFormulaMlFormula. getFormula()Returns the inner formula of this modal formula.Constructors in net.sf.tweety.logics.ml.syntax with parameters of type RelationalFormula Constructor Description MlFormula(RelationalFormula formula)Necessity(RelationalFormula formula)Creates a new necessity formula with the given inner formulaPossibility(RelationalFormula formula)Creates a new possibility formula with the given inner formulaConstructor parameters in net.sf.tweety.logics.ml.syntax with type arguments of type RelationalFormula Constructor Description MlBeliefSet(java.util.Set<RelationalFormula> formulas)Creates a new modal knowledge base with the given set of formulas. -
Uses of RelationalFormula in net.sf.tweety.logics.ml.writer
Methods in net.sf.tweety.logics.ml.writer with parameters of type RelationalFormula Modifier and Type Method Description private java.lang.StringMleanCoPWriter. printFormula(RelationalFormula f)Creates a representation of a formula in MleanCoP format.private java.lang.StringSPASSWriter. printFormula(RelationalFormula f)private java.lang.StringSPASSWriter. printFormulas(MlBeliefSet kb, RelationalFormula formula)Prints the axioms declaration and conjectures declaration for a SPASS input file.voidSPASSWriter. printProblem(MlBeliefSet kb, RelationalFormula formula)Prints the contents of a SPASS problem file for a given knowledge base and a formula.voidMleanCoPWriter. printQuery(RelationalFormula f)Prints the query.Constructors in net.sf.tweety.logics.ml.writer with parameters of type RelationalFormula Constructor Description MlWriter(RelationalFormula formula) -
Uses of RelationalFormula in net.sf.tweety.logics.mln.reasoner
Methods in net.sf.tweety.logics.mln.reasoner with parameters of type RelationalFormula Modifier and Type Method Description private java.lang.StringAlchemyMlnReasoner. alchemyStringForFormula(RelationalFormula formula)Returns the string in Alchemy syntax representing the given formula. -
Uses of RelationalFormula in net.sf.tweety.logics.mln.syntax
Subclasses of RelationalFormula in net.sf.tweety.logics.mln.syntax Modifier and Type Class Description classMlnFormulaInstances of this class represent first-order formulas with a weight.Methods in net.sf.tweety.logics.mln.syntax that return RelationalFormula Modifier and Type Method Description RelationalFormulaMlnFormula. clone()RelationalFormulaMlnFormula. complement()RelationalFormulaMlnFormula. substitute(Term<?> v, Term<?> t) -
Uses of RelationalFormula in net.sf.tweety.logics.rcl.syntax
Subclasses of RelationalFormula in net.sf.tweety.logics.rcl.syntax Modifier and Type Class Description classRelationalConditionalInstances of this class represent relational conditionals.Methods in net.sf.tweety.logics.rcl.syntax that return RelationalFormula Modifier and Type Method Description RelationalFormulaRelationalConditional. complement()RelationalFormulaRelationalConditional. substitute(Term<?> v, Term<?> t) -
Uses of RelationalFormula in net.sf.tweety.logics.rdl.syntax
Subclasses of RelationalFormula in net.sf.tweety.logics.rdl.syntax Modifier and Type Class Description classDefaultRuleModels a default rule in Reiter's default logic, see [R.Methods in net.sf.tweety.logics.rdl.syntax that return RelationalFormula Modifier and Type Method Description RelationalFormulaDefaultRule. clone()RelationalFormulaDefaultRule. complement()RelationalFormulaDefaultRule. substitute(Term<?> v, Term<?> t) -
Uses of RelationalFormula in net.sf.tweety.logics.rpcl.syntax
Subclasses of RelationalFormula in net.sf.tweety.logics.rpcl.syntax Modifier and Type Class Description classRelationalProbabilisticConditionalThis class represents a relational probabilistic conditional, i.e.Methods in net.sf.tweety.logics.rpcl.syntax that return RelationalFormula Modifier and Type Method Description RelationalFormulaRelationalProbabilisticConditional. substitute(Term<?> v, Term<?> t) -
Uses of RelationalFormula in net.sf.tweety.lp.nlp.syntax
Subclasses of RelationalFormula in net.sf.tweety.lp.nlp.syntax Modifier and Type Class Description classNLPNotA default negation of a first order formula, nested logic programs only allow not quantified formulas.
-