Class FOLPropTranslator
java.lang.Object
org.tweetyproject.logics.translators.Translator
org.tweetyproject.logics.translators.folprop.FOLPropTranslator
A Translator between the FOL and propositonal logic and vice versa.
- Author:
- Tim Janus, Anna Gessler
-
Field Summary
Fields inherited from class org.tweetyproject.logics.translators.Translator
TT_ASSOC, TT_ATOM, TT_PREDICATE, TT_RULE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoFOL
(Conjunction conjunction) Translates the given propositional Conjunction to a FOL ConjunctiontoFOL
(Disjunction disjunction) Translates the given propositional Disjunction to a FOL DisjunctionReturn FolFormula toFOLtoFOL
(Proposition proposition) Translates the given proposition into a FOL-AtomtoPropositional
(Conjunction conjunction) Translates the given FOL Conjunction to a propositional ConjunctiontoPropositional
(Disjunction disjunction) Translates the given FOL Disjunction to a propositional DisjunctionTranslates the given FOL Exclusive Disjunction to a propositional Exclusive DisjunctiontoPropositional
(FolAtom atom) Translates the given FOL-Atom into a PropositiontoPropositional
(FolFormula folFormula) Return PlFormula toPropositionalMethods inherited from class org.tweetyproject.logics.translators.Translator
translateAssociative, translateAtom, translatePredicate, translateRule, translateUsingMap
-
Constructor Details
-
FOLPropTranslator
public FOLPropTranslator()Default-Ctor
-
-
Method Details
-
toPropositional
Translates the given FOL-Atom into a Proposition- Parameters:
atom
- FOL-Atom, if the given Atom has arguments an exception is thrown.- Returns:
- Propositional form of the given Atom
-
toFOL
Translates the given proposition into a FOL-Atom- Parameters:
proposition
- The Proposition- Returns:
- A FOL-Atom representing the given Proposition in first order logic.
-
toFOL
Translates the given propositional Disjunction to a FOL Disjunction- Parameters:
disjunction
- a PL disjunction- Returns:
- The FOL Disjunction
-
toPropositional
Translates the given FOL Disjunction to a propositional Disjunction- Parameters:
disjunction
- The FOL-Disjunction, if it contains formulas which are not expressible in propositional logic an exception is thrown.- Returns:
- The propositional Disjunction
-
toPropositional
Translates the given FOL Exclusive Disjunction to a propositional Exclusive Disjunction- Parameters:
xor
- The FOL-Exclusive Disjunction, if it contains formulas which are not expressible in propositional logic an exception is thrown.- Returns:
- The propositional Exclusive Disjunction
-
toFOL
Translates the given propositional Conjunction to a FOL Conjunction- Parameters:
conjunction
- a PL conjunction- Returns:
- The FOL Conjunction
-
toPropositional
Translates the given FOL Conjunction to a propositional Conjunction- Parameters:
conjunction
- The FOL-Conjunction, if it contains formulas which are not expressible in propositional logic an exception is thrown.- Returns:
- The propositional Conjunction
-
toFOL
Return FolFormula toFOL- Parameters:
propFormula
- propFormula- Returns:
- FolFormula toFOL
-
toPropositional
Return PlFormula toPropositional- Parameters:
folFormula
- folFormula- Returns:
- PlFormula toPropositional
-