public abstract class BaseKnowledgeBaseInterpreter extends Object implements KnowledgeBaseInterpreter
| Modifier | Constructor and Description |
|---|---|
protected |
BaseKnowledgeBaseInterpreter(KnowledgeBaseEngineOperations engineOperations,
KnowledgeBaseType type) |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
createPluginInstance(String pluginClassName)
Creates plugin instance.
|
<T extends Processor> |
createProcessorInstance(String processorClassName,
Class<T> javaClass)
Creates processor instance.
|
protected abstract <T> T |
doCreateInstance(String className,
Class<T> javaClass)
Creates an instance of the given class.
|
protected RuleEventSpec |
getCustomRuleEventSpec(String eventSpecString)
Resolves event specification "<name> <alias> : <mode>".
|
KnowledgeBaseEngineOperations |
getEngineOperations() |
org.slf4j.Logger |
getLogger() |
RuleEventSpec |
getRuleEventSpec(Object eventSpecEntry) |
String |
getSpecificExceptionMessage(Throwable e) |
KnowledgeBaseType |
getType() |
<T> T |
getVariable(String name,
Class<T> cls) |
protected org.apache.commons.lang3.tuple.ImmutablePair<String,String> |
resolveEventNameAndAlias(String eventSpecString) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateProcessorInstanceByProcessorClass, existsVariable, getJavaException, getScriptKnowledgeBaseProcessorClassName, getVariable, invokeMethod, isKnowledgeBaseException, setVariableprotected BaseKnowledgeBaseInterpreter(KnowledgeBaseEngineOperations engineOperations, KnowledgeBaseType type)
public <T extends Processor> T createProcessorInstance(String processorClassName, Class<T> javaClass)
createProcessorInstance in interface KnowledgeBaseInterpreterprocessorClassName - processor class name.protected abstract <T> T doCreateInstance(String className, Class<T> javaClass)
T - instance typeclassName - class name.javaClass - processor class.public Plugin createPluginInstance(String pluginClassName)
createPluginInstance in interface KnowledgeBaseInterpreterpluginClassName - plugin class name.public KnowledgeBaseEngineOperations getEngineOperations()
getEngineOperations in interface KnowledgeBaseInterpreterpublic KnowledgeBaseType getType()
getType in interface KnowledgeBaseInterpreterpublic RuleEventSpec getRuleEventSpec(Object eventSpecEntry)
getRuleEventSpec in interface KnowledgeBaseInterpreterprotected RuleEventSpec getCustomRuleEventSpec(String eventSpecString)
eventSpecString - event specification.protected org.apache.commons.lang3.tuple.ImmutablePair<String,String> resolveEventNameAndAlias(String eventSpecString)
public <T> T getVariable(String name, Class<T> cls)
getVariable in interface KnowledgeBaseInterpreterpublic org.slf4j.Logger getLogger()
public String getSpecificExceptionMessage(Throwable e)
getSpecificExceptionMessage in interface KnowledgeBaseInterpreterCopyright © 2016–2019 Softelnet. All rights reserved.