public interface ScriptKnowledgeBaseInterpreter extends KnowledgeBaseInterpreter, KnowledgeBaseOperations
| Modifier and Type | Method and Description |
|---|---|
<T> T |
eval(String expression)
Evaluates an expression.
|
<T> T |
eval(String expression,
Class<T> cls)
Evaluates an expression.
|
<T> T |
invokeFunction(String name,
Class<T> cls,
Object... args)
Invokes a knowledge base function.
|
<T> T |
invokeOptionalFunction(String name,
T defaultValue)
Invokes a knowledge base function.
|
void |
load(KnowledgeBaseScript script)
Loads the knowledge base from the script.
|
void |
load(List<KnowledgeBaseScript> scripts)
Loads 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,
Charset charset,
boolean required)
Loads the knowledge base from the file.
|
void |
load(String fileName,
String charset)
Loads the knowledge base from the file.
|
void |
reload(List<KnowledgeBaseScript> scripts)
Reloads scripts.
|
void |
scanToAutoEnable()
Scans this knowledge base interpreter for processor definitions (classes) in order to auto enable.
|
createPluginInstance, createProcessorInstance, createProcessorInstanceByProcessorClass, existsVariable, getEngineOperations, getJavaException, getRuleEventSpec, getScriptKnowledgeBaseProcessorClassName, getSpecificExceptionMessage, getType, getVariable, getVariable, invokeMethod, isKnowledgeBaseException, setVariableonAfterReload, onBeforeReload, onClear, onInit, onLoad, onRun, onShutdown, onStartupvoid load(List<KnowledgeBaseScript> scripts)
scripts - knowledge base scripts.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 load(String fileName, Charset charset, boolean required)
fileName - file name.charset - charset.required - true if the file is required.void load(KnowledgeBaseScript script)
script - the knowledge base script.void reload(List<KnowledgeBaseScript> scripts)
scripts - knowledge base scripts.<T> T invokeOptionalFunction(String name, T defaultValue)
T - return value type.name - a function name.defaultValue - a default value that will be returned when there is no such function.<T> T invokeFunction(String name, Class<T> cls, Object... args)
T - return value type.name - function name.cls - result type.args - function arguments.<T> T eval(String expression)
T - result type.expression - expression.<T> T eval(String expression, Class<T> cls)
T - result type.expression - expression.cls - result class.void scanToAutoEnable()
Copyright © 2016–2019 Softelnet. All rights reserved.