Uses of Class
org.tweetyproject.logics.fol.syntax.FolFormula
Package
Description
-
Uses of FolFormula in org.tweetyproject.action.description.syntax
Modifier and TypeMethodDescriptionDynamicLaw.getAfterFormula()
Retrieves the after formula of this causal law.CLaw.getHeadFormula()
Retrieves the head formula of this causal law.CLaw.getIfFormula()
Retrieves the conditional (if) formula of this causal law.Modifier and TypeMethodDescriptionabstract Set
<FolFormula> CLaw.getFormulas()
Returns the set of formulas contained in this causal law, e.g.DynamicLaw.getFormulas()
StaticLaw.getFormulas()
ModifierConstructorDescriptionCLaw
(FolFormula headFormula) Creates a causal law of the form "caused headFormula if True"CLaw
(FolFormula headFormula, Set<GroundingRequirement> requirements) Creates a causal law of the form "caused headFormula if True requires requirements"CLaw
(FolFormula headFormula, FolFormula ifFormula) Creates a causal law of the form "caused headFormula if ifFormula"CLaw
(FolFormula headFormula, FolFormula ifFormula, Set<GroundingRequirement> requirements) Creates a causal law of the form "caused headFormula if ifFormula requires requirements"DynamicLaw
(FolFormula headFormula, FolFormula afterFormula) Creates a new dynamic law of the form "caused headFormula after afterFormula"DynamicLaw
(FolFormula headFormula, FolFormula afterFormula, Set<GroundingRequirement> requirements) Creates a new dynamic law of the form "caused headFormula after afterFormula" requires requirementsDynamicLaw
(FolFormula headFormula, FolFormula ifFormula, FolFormula afterFormula) Creates a new dynamic law of the form: "caused headFormula if ifFormula after afterFormula"DynamicLaw
(FolFormula headFormula, FolFormula ifFormula, FolFormula afterFormula, Set<GroundingRequirement> requirements) Creates a new dynamic law of the form: "caused headFormula if ifFormula after afterFormula requires requirements"StaticLaw
(FolFormula headFormula) Creates an empty static law of the form "caused headFormula if True"StaticLaw
(FolFormula headFormula, Set<GroundingRequirement> requirements) Creates an empty static law of the form "caused headFormula if True requires requirements"StaticLaw
(FolFormula headFormula, FolFormula ifFormula) Creates an empty static law of the form "caused headFormula if ifFormula"StaticLaw
(FolFormula headFormula, FolFormula ifFormula, Set<GroundingRequirement> requirements) Creates an empty static law of the form "caused headFormula if ifFormula" requires requirements -
Uses of FolFormula in org.tweetyproject.action.query.syntax
Modifier and TypeMethodDescriptionQueryProposition.getInnerFormula()
Returns the inner formula of this query proposition, e.g.Modifier and TypeMethodDescriptionSActionQuery.getInnerFormulas()
Returns all inner formulas that are contained in query propositions in this action query.ModifierConstructorDescriptionAlwaysQuery
(FolFormula formula) Creates a new always query with the given inner formula.HoldsQuery
(FolFormula formula) Creates a new holds query with the given inner formula.NecessarilyQuery
(FolFormula formula) Creates a new necessarily query with an empty action sequence.NecessarilyQuery
(FolFormula formula, List<FolAction> actions) Creates a new necessarily query with the given inner formula and list of actions.NecessarilyQuery
(FolFormula formula, FolAction action) Creates a new necessarily query with the given inner formula and a single action.QueryProposition
(FolFormula formula, String name) Creates a new query proposition with the given formula and a unique name, which is used by the base class. -
Uses of FolFormula in org.tweetyproject.action.signature
ModifierConstructorDescriptionCreates a new ActionSignature for a single first-order formula. -
Uses of FolFormula in org.tweetyproject.arg.aspic.ruleformulagenerator
Modifier and TypeMethodDescriptionFolFormulaGenerator.getRuleFormula
(DefeasibleInferenceRule<FolFormula> r) Modifier and TypeMethodDescriptionFolFormulaGenerator.getRuleFormula
(DefeasibleInferenceRule<FolFormula> r) -
Uses of FolFormula in org.tweetyproject.arg.delp.parser
Modifier and TypeMethodDescriptionfinal FolFormula
DelpParser.Formula
(FolSignature signature) Parses a formula from the given signature.final FolFormula
DelpParser.Literal
(DefeasibleLogicProgram delp, FolSignature signature) Parses a literal, which could be an atom or its negation. -
Uses of FolFormula in org.tweetyproject.arg.delp.reasoner
Modifier and TypeMethodDescriptionstatic Set
<DelpArgument> DelpReasoner.getArgumentsWithConclusion
(DefeasibleLogicProgram delp, FolFormula f) Returns all arguments with the given conclusion from the delp.DelpReasoner.query
(DefeasibleLogicProgram delp, FolFormula f) -
Uses of FolFormula in org.tweetyproject.arg.delp.syntax
Modifier and TypeMethodDescriptionDelpArgument.getConclusion()
returns the conclusion of this argumentDelpRule.getConclusion()
Modifier and TypeMethodDescriptionDelpArgument.getAttackOpportunities
(DefeasibleLogicProgram delp) Computes the set of literals that disagree with the conclusion of a subargument of this argumentCollection
<? extends FolFormula> DelpRule.getPremise()
DefeasibleLogicProgram.getStrictClosure()
Computes the strict closure of the program, i.e., the set of all strictly derivable literals.DefeasibleLogicProgram.getStrictClosure
(Set<FolFormula> literals) Computes the strict closure of the program, i.e., the set of all strictly derivable literals.DefeasibleLogicProgram.getStrictClosure
(Set<FolFormula> literals, Set<DefeasibleRule> defeasibleRules) Computes the strict closure of the program, i.e., the set of all strictly derivable literals.DefeasibleLogicProgram.getStrictClosure
(Set<FolFormula> literals, Set<DefeasibleRule> defeasibleRules, boolean usefacts) Computes the strict closure of the program, i.e., the set of all strictly derivable literals.Modifier and TypeMethodDescriptionvoid
DelpRule.addPremise
(FolFormula premise) DelpArgument.getDisagreementSubargument
(FolFormula lit, DefeasibleLogicProgram delp) Computes the disagreement subargument of this argument for the given literalDefeasibleLogicProgram.getRulesWithHead
(FolFormula l) Returns all defeasible and strict rules appearing in this program with the given literal as headDelpArgument.getRulesWithHead
(FolFormula l) Returns all defeasible rules of the support of this argument with the given literal as headvoid
DelpRule.setConclusion
(FolFormula conclusion) Modifier and TypeMethodDescriptionvoid
DelpRule.addPremises
(Collection<? extends FolFormula> premises) boolean
DefeasibleLogicProgram.disagree
(Set<FolFormula> literals) Checks whether the given set of literals disagree with respect to the strict part of this program.DefeasibleLogicProgram.getStrictClosure
(Set<FolFormula> literals) Computes the strict closure of the program, i.e., the set of all strictly derivable literals.DefeasibleLogicProgram.getStrictClosure
(Set<FolFormula> literals, Set<DefeasibleRule> defeasibleRules) Computes the strict closure of the program, i.e., the set of all strictly derivable literals.DefeasibleLogicProgram.getStrictClosure
(Set<FolFormula> literals, Set<DefeasibleRule> defeasibleRules, boolean usefacts) Computes the strict closure of the program, i.e., the set of all strictly derivable literals.boolean
DelpRule.isApplicable
(Collection<? extends FolFormula> literals) Checks whether this rule is applicaple in the given contextliterals
,ModifierConstructorDescriptionDefeasibleRule
(FolFormula head, Set<FolFormula> body) Initializes the defeasible rule with the given parametersDelpArgument
(Set<DefeasibleRule> support, FolFormula conclusion) constructor; initializes this argument with the given parametersDelpArgument
(FolFormula conclusion) constructor; initializes the conclusion of this argument with the given literalDelpFact
(FolFormula literal) Default constructor; initializes this fact with the given literalStrictRule
(FolFormula head, Set<FolFormula> body) Default constructor; initializes head and body of the strict ruleModifierConstructorDescriptionDefeasibleRule
(FolFormula head, Set<FolFormula> body) Initializes the defeasible rule with the given parametersStrictRule
(FolFormula head, Set<FolFormula> body) Default constructor; initializes head and body of the strict rule -
Uses of FolFormula in org.tweetyproject.logics.fol.parser
Modifier and TypeMethodDescriptionFolParser.parseFormula
(Reader reader) TPTPParser.parseFormula
(Reader reader) -
Uses of FolFormula in org.tweetyproject.logics.fol.reasoner
Modifier and TypeMethodDescriptionboolean
EFOLReasoner.equivalent
(FolBeliefSet kb, FolFormula a, FolFormula b) abstract boolean
FolReasoner.equivalent
(FolBeliefSet kb, FolFormula a, FolFormula b) This method determines whether two formulas are equivalent wrt.boolean
Prover9FolReasoner.equivalent
(FolBeliefSet kb, FolFormula a, FolFormula b) boolean
SimpleFolReasoner.equivalent
(FolBeliefSet kb, FolFormula f1, FolFormula f2) boolean
SpassFolReasoner.equivalent
(FolBeliefSet kb, FolFormula a, FolFormula b) EFOLReasoner.query
(FolBeliefSet kb, FolFormula query) abstract Boolean
FolReasoner.query
(FolBeliefSet beliefbase, FolFormula formula) Prover9FolReasoner.query
(FolBeliefSet kb, FolFormula query) SimpleFolReasoner.query
(FolBeliefSet kb, FolFormula formula) SpassFolReasoner.query
(FolBeliefSet kb, FolFormula query) -
Uses of FolFormula in org.tweetyproject.logics.fol.semantics
Modifier and TypeMethodDescriptionboolean
HerbrandInterpretation.satisfies
(FolFormula formula) Checks whether this Herbrand interpretation satisfies the given formula.Modifier and TypeMethodDescriptionboolean
HerbrandInterpretation.satisfies
(Set<FolFormula> formulas) Checks whether this Herbrand interpretation satisfies each of the formulas in the given set of first-order formulas. -
Uses of FolFormula in org.tweetyproject.logics.fol.syntax
Modifier and TypeClassDescriptionclass
This class captures the common functionalities first order associative formulas like conjunction, disjunction, etc.class
The classical conjunction of first-order logic.class
A contradictory formula.class
The classical disjunction of first-order logic.class
The equivalence of first-order logic.class
The exclusive disjunction (XOR) in first-order logic.class
Exists-quantified first-order logic formula.class
An atom in first-order logic, i.e.class
For-All-quantified first-order logic formula.class
The implication of first-order logic.class
The classical negation of first-order logic.class
This class captures the common functionalities of the special formulas tautology and contradiction.class
A tautological formula.Modifier and TypeMethodDescriptionabstract FolFormula
FolFormula.clone()
ExistsQuantifiedFormula.collapseAssociativeFormulas()
FolAtom.collapseAssociativeFormulas()
ForallQuantifiedFormula.collapseAssociativeFormulas()
Negation.collapseAssociativeFormulas()
SpecialFormula.collapseAssociativeFormulas()
ExistsQuantifiedFormula.getFormula()
returns formulaForallQuantifiedFormula.getFormula()
returns formulaNegation.getFormula()
Equivalence.substitute
(Term<?> v, Term<?> t) abstract FolFormula
FolFormula.substitute
(Term<?> v, Term<?> t) Implication.substitute
(Term<?> v, Term<?> t) SpecialFormula.substitute
(Term<?> v, Term<?> t) FolFormula.toDnf()
Makes a disjunctive normal form of this formula.Conjunction.toNnf()
Disjunction.toNnf()
Equivalence.toNnf()
ExclusiveDisjunction.toNnf()
ExistsQuantifiedFormula.toNnf()
FolAtom.toNnf()
abstract FolFormula
FolFormula.toNnf()
Makes the negation normal form of this formula.ForallQuantifiedFormula.toNnf()
Implication.toNnf()
Negation.toNnf()
SpecialFormula.toNnf()
Modifier and TypeMethodDescriptionExistsQuantifiedFormula.getQuantifiedFormulas()
Return quantified formulasForallQuantifiedFormula.getQuantifiedFormulas()
Return the quantified formularsSpecialFormula.getQuantifiedFormulas()
Return formulasModifier and TypeMethodDescriptionboolean
AssociativeFolFormula.add
(FolFormula... formulas) Adds the specified elements to the end of this collection (optional operation).boolean
FolSignature.isRepresentable
(FolFormula folFormula) Checks whether the given formula can be represented by this signature.void
ExistsQuantifiedFormula.setFormula
(FolFormula formula) set formulavoid
ForallQuantifiedFormula.setFormula
(FolFormula formula) sets formulaModifierConstructorDescriptionFolBeliefSet
(Collection<FolFormula> formulas) Creates a new first-order knowledge base with the given set of formulas. -
Uses of FolFormula in org.tweetyproject.logics.fol.writer
Modifier and TypeMethodDescriptionvoid
FolWriter.printEquivalence
(FolFormula a, FolFormula b) Prints an Equivalence.void
Prover9Writer.printEquivalence
(FolFormula a, FolFormula b) void
StandardFolWriter.printEquivalence
(FolFormula a, FolFormula b) void
TPTPWriter.printEquivalence
(FolFormula a, FolFormula b) void
FolWriter.printQuery
(FolFormula query) Prints formatted representation of a query.void
Prover9Writer.printQuery
(FolFormula query) void
StandardFolWriter.printQuery
(FolFormula query) void
TPTPWriter.printQuery
(FolFormula query) -
Uses of FolFormula in org.tweetyproject.logics.ml.reasoner
Modifier and TypeMethodDescriptionabstract Boolean
AbstractMlReasoner.query
(MlBeliefSet beliefbase, FolFormula formula) MleanCoPReasoner.query
(MlBeliefSet beliefbase, FolFormula formula) SimpleMlReasoner.query
(MlBeliefSet mbs, FolFormula formula) SPASSMlReasoner.query
(MlBeliefSet kb, FolFormula query) -
Uses of FolFormula in org.tweetyproject.logics.ml.semantics
Modifier and TypeMethodDescriptionAccessibilityRelation.getNodes()
Returns all interpretations of the accessibility relation.AccessibilityRelation.getSuccessors
(Interpretation<FolBeliefSet, FolFormula> i) Returns all interpretations that are accessible to a given interpretation i.Modifier and TypeMethodDescriptionboolean
KripkeModel.satisfies
(FolFormula formula) boolean
MlHerbrandInterpretation.satisfies
(FolFormula formula) Modifier and TypeMethodDescriptionAccessibilityRelation.getSuccessors
(Interpretation<FolBeliefSet, FolFormula> i) Returns all interpretations that are accessible to a given interpretation i.boolean
MlHerbrandInterpretation.satisfies
(Set<FolFormula> formulas) Checks whether this Herbrand interpretation satisfies each of the formulas in the given set of first-order formulas.boolean
MlHerbrandInterpretation.satisfies
(Formula formula, Set<Interpretation<FolBeliefSet, FolFormula>> successors) Checks whether this Herbrand interpretation satisfies the given formula.ModifierConstructorDescriptionAccessibilityRelation
(Set<Pair<Interpretation<FolBeliefSet, FolFormula>, Interpretation<FolBeliefSet, FolFormula>>> tuples) Constructs a new accessibility relation.AccessibilityRelation
(Set<Pair<Interpretation<FolBeliefSet, FolFormula>, Interpretation<FolBeliefSet, FolFormula>>> tuples) Constructs a new accessibility relation.KripkeModel
(Set<? extends Interpretation<FolBeliefSet, FolFormula>> possibleWorlds, AccessibilityRelation accRelation) Creates a new Kripke model. -
Uses of FolFormula in org.tweetyproject.logics.ml.syntax
Modifier and TypeClassDescriptionclass
This class models a modal formula, i.e.class
This class models the necessity modality.class
This class models the possibility modality.Modifier and TypeMethodDescriptionNecessity.clone()
Possibility.clone()
Necessity.substitute
(Term<?> v, Term<?> t) Possibility.substitute
(Term<?> v, Term<?> t) Necessity.toNnf()
Possibility.toNnf()
-
Uses of FolFormula in org.tweetyproject.logics.mln.reasoner
Modifier and TypeMethodDescriptiondouble
AlchemyMlnReasoner.doQuery
(MarkovLogicNetwork mln, FolFormula query, FolSignature signature) double
SimpleMlnReasoner.doQuery
(MarkovLogicNetwork mln, FolFormula query, FolSignature signature) AbstractMlnReasoner.query
(MarkovLogicNetwork mln, FolFormula query) AbstractMlnReasoner.query
(MarkovLogicNetwork mln, FolFormula query, FolSignature signature) Queries the given MLN wrt. -
Uses of FolFormula in org.tweetyproject.logics.mln.syntax
ModifierConstructorDescriptionMlnFormula
(FolFormula formula) Creates a new strict MLN formula with the given formula.MlnFormula
(FolFormula formula, Double weight) Creates a new MLN formula with the given formula and weight.MlnFormula
(FolFormula formula, Probability p) Creates a new MLN formula and estimates its weight w by the given probability p using the formula w = log(p/(1-p)*f) where "f" is the ratio of the number of worlds not satisfying the formula and the worlds satisfying the formula. -
Uses of FolFormula in org.tweetyproject.logics.rcl.reasoner
Modifier and TypeMethodDescriptionSimpleRelationalCReasoner.query
(RclBeliefSet bs, FolFormula query) SimpleRelationalCReasoner.query
(RclBeliefSet bs, FolFormula query, FolSignature signature) Queries the given belief set wrt. -
Uses of FolFormula in org.tweetyproject.logics.rcl.semantics
Modifier and TypeMethodDescriptionRelationalRankingFunction.rank
(FolFormula formula) Gets the rank of the given sentence (ground formula). -
Uses of FolFormula in org.tweetyproject.logics.rcl.syntax
Modifier and TypeMethodDescriptionCollection
<? extends FolFormula> RelationalConditional.getPremise()
Modifier and TypeMethodDescriptionvoid
RelationalConditional.addPremise
(FolFormula premise) void
RelationalConditional.setConclusion
(FolFormula conclusion) Modifier and TypeMethodDescriptionvoid
RelationalConditional.addPremises
(Collection<? extends FolFormula> premises) ModifierConstructorDescriptionRelationalConditional
(FolFormula conclusion) Creates a new conditional with the given conclusion and a tautological premise.RelationalConditional
(FolFormula premise, FolFormula conclusion) Creates a new conditional with the given premise and conclusion. -
Uses of FolFormula in org.tweetyproject.logics.rdl.reasoner
Modifier and TypeMethodDescriptionSimpleDefaultReasoner.query
(DefaultTheory theory, FolFormula query) SimpleDefaultReasoner.query
(DefaultTheory theory, FolFormula query, InferenceMode inferenceMode) Queries the given default theory for the given query using the given inference mode. -
Uses of FolFormula in org.tweetyproject.logics.rdl.semantics
Modifier and TypeMethodDescriptionDefaultSequence.getIn()
Return the sequence's in setDefaultSequence.getOut()
Return the sequence's out setExtension.iterator()
Modifier and TypeMethodDescriptionboolean
Extension.add
(FolFormula e) boolean
Extension.satisfies
(FolFormula formula) ModifierConstructorDescriptionExtension
(Collection<FolFormula> formulas) Creates a new extension with the given set of formulas. -
Uses of FolFormula in org.tweetyproject.logics.rdl.syntax
Modifier and TypeMethodDescriptionDefaultRule.getConclusion()
Return the default's conclusionDefaultRule.getPrerequisite()
Return the default's prerequisiteModifier and TypeMethodDescriptionDefaultRule.getJustification()
Return the default's justificationModifierConstructorDescriptionDefaultRule
(FolFormula pre, Collection<FolFormula> jus, FolFormula conc) Creates a new DefaultRuleDefaultRule
(FolFormula pre, FolFormula jus, FolFormula conc) Creates a new DefaultRuleModifierConstructorDescriptionDefaultRule
(FolFormula pre, Collection<FolFormula> jus, FolFormula conc) Creates a new DefaultRule -
Uses of FolFormula in org.tweetyproject.logics.rpcl.reasoner
Modifier and TypeMethodDescriptionRpclMeReasoner.query
(RpclBeliefSet beliefbase, FolFormula formula) RpclMeReasoner.query
(RpclBeliefSet beliefbase, FolFormula query, FolSignature signature) Queries the knowledge base wrt. -
Uses of FolFormula in org.tweetyproject.logics.rpcl.semantics
Modifier and TypeClassDescriptionclass
Objects of this class represent probability distributions on the interpretations of an underlying first-order signature for a relational probabilistic conditional knowledge base.Modifier and TypeMethodDescriptionReferenceWorld.getMultiplicator
(FolFormula f) Returns the multiplicator of this reference world for the given formula, i.e.CondensedProbabilityDistribution.probability
(FolFormula f) RpclProbabilityDistribution.probability
(FolFormula f) Gets the probability of the given closed formula, i.e.boolean
ReferenceWorld.satisfies
(FolFormula formula) Modifier and TypeMethodDescriptionabstract Statement
AbstractRpclSemantics.getSatisfactionStatement
(RelationalProbabilisticConditional r, FolSignature signature, Map<Interpretation<FolBeliefSet, FolFormula>, FloatVariable> worlds2vars) AggregatingSemantics.getSatisfactionStatement
(RelationalProbabilisticConditional r, FolSignature signature, Map<Interpretation<FolBeliefSet, FolFormula>, FloatVariable> worlds2vars) AveragingSemantics.getSatisfactionStatement
(RelationalProbabilisticConditional r, FolSignature signature, Map<Interpretation<FolBeliefSet, FolFormula>, FloatVariable> worlds2vars) RpclSemantics.getSatisfactionStatement
(RelationalProbabilisticConditional r, FolSignature signature, Map<Interpretation<FolBeliefSet, FolFormula>, FloatVariable> worlds2vars) Returns the mathematical statement corresponding to the satisfaction of the given conditional wrt. -
Uses of FolFormula in org.tweetyproject.logics.rpcl.syntax
ModifierConstructorDescriptionRelationalProbabilisticConditional
(FolFormula premise, FolFormula conclusion, Probability probability) Creates a new conditional with the given premise, conclusion and probability.RelationalProbabilisticConditional
(FolFormula conclusion, Probability probability) Creates a new conditional with the given conclusion and probability and a tautological premise. -
Uses of FolFormula in org.tweetyproject.logics.translators.aspfol
Modifier and TypeMethodDescriptionAspFolTranslator.toFOL
(ASPLiteral source) Translates an ASPLiteral to a FolFormula.Modifier and TypeMethodDescriptionAspFolTranslator.toASP
(FolFormula source) Translates a FolFormula to an ASPLiteral. -
Uses of FolFormula in org.tweetyproject.logics.translators.folprop
Modifier and TypeMethodDescriptionReturn FolFormula toFOLModifier and TypeMethodDescriptionFOLPropTranslator.toPropositional
(FolFormula folFormula) Return PlFormula toPropositional -
Uses of FolFormula in org.tweetyproject.lp.nlp.syntax
Modifier and TypeClassDescriptionclass
A default negation of a first order formula, nested logic programs only allow not quantified formulas.Modifier and TypeMethodDescriptionNLPProgram.getFacts()
Retrieves a set of facts from the nested logic program.NLPRule.getPremise()
Modifier and TypeMethodDescriptionvoid
NLPProgram.addFact
(FolFormula fact) Adds a fact to the nested logic program.void
NLPProgram.addFacts
(FolFormula... facts) Adds multiple facts to the nested logic program.void
NLPRule.addPremise
(FolFormula premise) void
NLPRule.setConclusion
(FolFormula conclusion) Modifier and TypeMethodDescriptionvoid
NLPRule.addPremises
(Collection<? extends FolFormula> premises) ModifierConstructorDescriptionNLPNot
(FolFormula inner) Ctor: Creates a new default not for nested logic programs by using the given FOL formula as inner formula.NLPRule
(FolFormula conclusion) Constructor that creates a `NLPRule` with a specified conclusion.NLPRule
(FolFormula conclusion, Collection<FolFormula> premise) Constructor that creates a `NLPRule` with a specified conclusion and a collection of premises.NLPRule
(FolFormula conclusion, FolFormula premise) Constructor that creates a `NLPRule` with a specified conclusion and a single premise.ModifierConstructorDescriptionNLPRule
(FolFormula conclusion, Collection<FolFormula> premise) Constructor that creates a `NLPRule` with a specified conclusion and a collection of premises.