Class AspFolTranslator
java.lang.Object
org.tweetyproject.logics.translators.Translator
org.tweetyproject.logics.translators.aspfol.AspFolTranslator
- Direct Known Subclasses:
AspNlpTranslator
This Translator can translate between FOL and ASP literals (without default
negated literals).
- Author:
- Tim Janus
-
Field Summary
FieldsFields inherited from class org.tweetyproject.logics.translators.Translator
TT_ASSOC, TT_ATOM, TT_PREDICATE, TT_RULE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoASP
(Disjunction source) toASP
(FolFormula source) toFOL
(ASPLiteral source) toFOL
(ClassicalHead source) toFOL
(StrictNegation source) Methods inherited from class org.tweetyproject.logics.translators.Translator
translateAssociative, translateAtom, translatePredicate, translateRule
-
Field Details
-
TT_NEGATION
public static final int TT_NEGATIONTT_Negation- See Also:
-
-
Constructor Details
-
AspFolTranslator
public AspFolTranslator()Default-Ctor
-
-
Method Details
-
toFOL
- Parameters:
source
- source- Returns:
- FolAtom toFOL
-
toASP
- Parameters:
source
- source- Returns:
- ASPAtom toASP
-
toASP
- Parameters:
source
- source- Returns:
- ASPLiteral toASP
-
toFOL
- Parameters:
source
- source- Returns:
- Negation toFOL
-
toASP
- Parameters:
source
- source- Returns:
- StrictNegation toASP
-
toFOL
- Parameters:
source
- source- Returns:
- FolFormula toFOL
-
toFOL
- Parameters:
source
- source- Returns:
- Disjunction toFOL
-
toASP
- Parameters:
source
- source- Returns:
- ClassicalHead toASP
-
translateUsingMap
- Overrides:
translateUsingMap
in classTranslator
- Parameters:
source
- source- Returns:
- SimpleLogicalFormula translateUsingMap
-