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, scanToAutoEnable, setInterpreter, setTypeonAfterLoad, onAfterReload, onBeforeLoad, onBeforeReload, onClear, onInit, onLoad, onRun, onShutdown, onStartupgetDescription, getLabel, getName, setDescription, setLabel, setNamegetVersion, setVersionList<KnowledgeBaseScript> getScripts()
void addScript(KnowledgeBaseScript script)
script - knowledge base script.void load()
void load(String filename)
filename - filename.void load(String filename, String charset)
filename - filename.charset - charset.void load(String filename, Charset charset)
filename - filename.charset - charset.void reload()
ScriptKnowledgeBaseInterpreter getInterpreter()
getInterpreter in interface KnowledgeBaseCopyright © 2016–2019 Softelnet. All rights reserved.