public class DefaultScriptKnowledgeBase extends BaseKnowledgeBase implements ScriptKnowledgeBase
| Constructor and Description |
|---|
DefaultScriptKnowledgeBase(String name) |
DefaultScriptKnowledgeBase(String name,
KnowledgeBaseType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addScript(KnowledgeBaseScript script) |
ScriptKnowledgeBaseInterpreter |
getInterpreter() |
List<KnowledgeBaseScript> |
getScripts() |
boolean |
isClearOnReload() |
void |
load() |
void |
load(String filename) |
void |
load(String filename,
Charset charset) |
void |
load(String filename,
String charset) |
void |
onAfterLoad() |
void |
onAfterReload()
Calls onAfterReload method in the knowledge base.
|
void |
onBeforeLoad() |
void |
onBeforeReload()
Calls onBeforeReload method in the knowledge base.
|
void |
onClear()
Clears the knowledge base state.
|
void |
onInit() |
void |
onLoad() |
boolean |
onRun() |
void |
onShutdown()
Calls onShutdown method in the knowledge base.
|
void |
onStartup()
Calls onStartup method in the knowledge base.
|
void |
reload() |
void |
scanToAutoEnable() |
void |
setClearOnReload(boolean clearOnReload) |
getDescription, getEngineOperations, getLabel, getLogger, getName, getSponge, getType, getVersion, setDescription, setInterpreter, setLabel, setName, setType, setVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEngineOperations, getType, setInterpreter, setTypegetDescription, getLabel, getName, setDescription, setLabel, setNamegetVersion, setVersionpublic DefaultScriptKnowledgeBase(String name, KnowledgeBaseType type)
public DefaultScriptKnowledgeBase(String name)
public boolean isClearOnReload()
isClearOnReload in interface ScriptKnowledgeBasepublic void setClearOnReload(boolean clearOnReload)
setClearOnReload in interface ScriptKnowledgeBasepublic List<KnowledgeBaseScript> getScripts()
getScripts in interface ScriptKnowledgeBasepublic void addScript(KnowledgeBaseScript script)
addScript in interface ScriptKnowledgeBasepublic ScriptKnowledgeBaseInterpreter getInterpreter()
getInterpreter in interface KnowledgeBasegetInterpreter in interface ScriptKnowledgeBasegetInterpreter in class BaseKnowledgeBasepublic final void onInit()
onInit in interface KnowledgeBaseOperationspublic final void onBeforeLoad()
onBeforeLoad in interface KnowledgeBaseOperationspublic final void onLoad()
onLoad in interface KnowledgeBaseOperationspublic final void onAfterLoad()
onAfterLoad in interface KnowledgeBaseOperationspublic final void onClear()
onClear in interface KnowledgeBaseOperationspublic final void onStartup()
onStartup in interface KnowledgeBaseOperationspublic final boolean onRun()
onRun in interface KnowledgeBaseOperationspublic final void onShutdown()
onShutdown in interface KnowledgeBaseOperationspublic final void onBeforeReload()
onBeforeReload in interface KnowledgeBaseOperationspublic final void onAfterReload()
onAfterReload in interface KnowledgeBaseOperationspublic void load()
load in interface ScriptKnowledgeBasepublic void load(String filename)
load in interface ScriptKnowledgeBasepublic void load(String filename, String charset)
load in interface ScriptKnowledgeBasepublic void load(String filename, Charset charset)
load in interface ScriptKnowledgeBasepublic void reload()
reload in interface ScriptKnowledgeBasepublic void scanToAutoEnable()
scanToAutoEnable in interface KnowledgeBaseCopyright © 2016–2021 Softelnet. All rights reserved.