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.
|
void |
invokeOptionalFunction(String name)
Invokes a knowledge base function.
|
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,
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, existsVariable, getEngineOperations, getJavaException, getRuleEventSpec, getScriptKnowledgeBaseProcessorClassName, getType, getVariable, getVariable, invokeMethod, isKnowledgeBaseException, setVariableonAfterReload, onBeforeReload, onClear, onInit, onLoad, 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 reload(List<KnowledgeBaseScript> scripts)
scripts - knowledge base scripts.void invokeOptionalFunction(String name)
name - function name.<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–2017 Softelnet. All rights reserved.