ubiware.core
Class SaplN3
java.lang.Object
ubiware.core.SaplN3
public class SaplN3
- extends java.lang.Object
|
Method Summary |
static java.util.List<java.lang.String> |
compile(java.lang.String text,
java.lang.String textID)
|
static java.util.List<java.lang.String> |
compileFile(java.lang.String filename)
|
(package private) static java.util.Map<java.lang.String,java.lang.String> |
createReplaceMap()
|
static void |
load(java.util.List<java.lang.String> code,
UbiwareAgent targetAgent,
java.lang.String topContext,
java.lang.String textID,
boolean doJoinCheck)
|
static java.lang.String |
produceN3(java.lang.String contextID,
ProduceN3Options options,
UbiwareAgent agent)
Generation of S-APL N3 from the agent's beliefs. |
static java.lang.StringBuilder |
produceN3(java.lang.String contextID,
ProduceN3Options options,
UbiwareAgent agent,
java.lang.StringBuilder builder)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createReplaceMap
static java.util.Map<java.lang.String,java.lang.String> createReplaceMap()
compileFile
public static java.util.List<java.lang.String> compileFile(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
compile
public static java.util.List<java.lang.String> compile(java.lang.String text,
java.lang.String textID)
load
public static void load(java.util.List<java.lang.String> code,
UbiwareAgent targetAgent,
java.lang.String topContext,
java.lang.String textID,
boolean doJoinCheck)
produceN3
public static java.lang.String produceN3(java.lang.String contextID,
ProduceN3Options options,
UbiwareAgent agent)
- Generation of S-APL N3 from the agent's beliefs.
- Parameters:
contextID - The context ID of the context from which the S-APL N3 should be generated.options - The options for the production. See ProduceN3Options for documentation.agent - The UbiwareAgent from which the S-APL N3 gets generated.
- Returns:
- A string containing the S-APL N3 code.
produceN3
public static java.lang.StringBuilder produceN3(java.lang.String contextID,
ProduceN3Options options,
UbiwareAgent agent,
java.lang.StringBuilder builder)