Package com.semedy.reasoner.utils
Class OOlogicShape
java.lang.Object
com.semedy.reasoner.utils.OOlogicShape
Utilities for OO logic syntax and printing
- Author:
- angele
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
toString
(Literal L, boolean magic, SymbolTable symbols, BuiltinProvider builtins) return OO-logic syntax for literal Lstatic String
toString
(Literal L, SymbolTable symbols, BuiltinProvider builtins) return OO-logic syntax for literal Lstatic String
toString
(Rule r, int markedIndex, SymbolTable symbols, BuiltinProvider builtins) return OO logic syntax for rule r, rule body 'markedIndex' is markedstatic String
toString
(Rule r, SymbolTable symbols, BuiltinProvider builtins) return OO logic syntax for rule rstatic String
toString
(Object term, SymbolTable symbols)
-
Constructor Details
-
OOlogicShape
public OOlogicShape()
-
-
Method Details
-
toString
public static String toString(Object term, SymbolTable symbols) throws IOException, SemReasonerException - Throws:
IOException
SemReasonerException
-
toString
public static String toString(Literal L, boolean magic, SymbolTable symbols, BuiltinProvider builtins) throws IOException, SemReasonerException return OO-logic syntax for literal L- Parameters:
L
-- Returns:
- Throws:
IOException
SemReasonerException
-
toString
public static String toString(Literal L, SymbolTable symbols, BuiltinProvider builtins) throws IOException, SemReasonerException return OO-logic syntax for literal L- Parameters:
L
-- Returns:
- Throws:
IOException
SemReasonerException
-
toString
public static String toString(Rule r, int markedIndex, SymbolTable symbols, BuiltinProvider builtins) throws IOException, SemReasonerException return OO logic syntax for rule r, rule body 'markedIndex' is marked- Parameters:
r
-markedIndex
-- Returns:
- Throws:
IOException
SemReasonerException
-
toString
public static String toString(Rule r, SymbolTable symbols, BuiltinProvider builtins) throws IOException, SemReasonerException return OO logic syntax for rule r- Parameters:
r
-symbols
-builtins
-- Returns:
- Throws:
IOException
SemReasonerException
-