public interface ScriptKnowledgeBase extends KnowledgeBase
| Modifier and Type | Method and Description |
|---|---|
void |
addScript(KnowledgeBaseScript script)
Adds a new knowledge base script.
|
ScriptKnowledgeBaseInterpreter |
getInterpreter()
Returns a script interpreter associated with this knowledge base.
|
List<KnowledgeBaseScript> |
getScripts()
Returns knowledge base scripts.
|
void |
load()
Loads a knowledge base from scripts.
|
void |
load(String fileName)
Loads the knowledge base from the file.
|
void |
load(String fileName,
Charset charset)
Loads the knowledge base from the file.
|
void |
load(String fileName,
String charset)
Loads the knowledge base from the file.
|
void |
reload()
Reloads the knowledge base from scripts.
|
getEngineOperations, getType, getVersion, scanToAutoEnable, setInterpreter, setType, setVersiononAfterReload, onBeforeReload, onClear, onInit, onLoad, onRun, onShutdown, onStartupgetDescription, getDisplayName, getName, setDescription, setDisplayName, setNameList<KnowledgeBaseScript> getScripts()
void addScript(KnowledgeBaseScript script)
script - knowledge base script.void load()
void load(String fileName)
fileName - file name.void load(String fileName, String charset)
fileName - file name.charset - charset.void load(String fileName, Charset charset)
fileName - file name.charset - charset.void reload()
ScriptKnowledgeBaseInterpreter getInterpreter()
getInterpreter in interface KnowledgeBaseCopyright © 2016–2018 Softelnet. All rights reserved.