com.hammurapi.review.util
Class InspectorSetCompiler
java.lang.Object
com.hammurapi.reasoning.impl.RuleSetToFlowCompiler
com.hammurapi.review.util.InspectorSetCompiler
- All Implemented Interfaces:
- com.hammurapi.reasoning.impl.Constants
public class InspectorSetCompiler
- extends com.hammurapi.reasoning.impl.RuleSetToFlowCompiler
This class compiles inspector set definition to a flow definition to be used by
Hammurapi Rules engine for inferring observations from model elements.
- Author:
- Pavel Vlasov
Fields inherited from interface com.hammurapi.reasoning.impl.Constants |
CONDITION_NO, DEFAULT, INPUT, LINE_SEPARATOR, OUTPUT, PUT, RULE_INDEX |
Methods inherited from class com.hammurapi.reasoning.impl.RuleSetToFlowCompiler |
compile, createNode, main, printDiagnostic |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InspectorSetCompiler
public InspectorSetCompiler()
compile
public com.hammurapi.flow.Flow compile(InspectorSet source,
FactoryConfig factoryConfig)
throws ConfigurationException
- Compiles inspector set to flow.
- Parameters:
source
- contextClassLoader
- contextUrl
- tokens
- profilePath
-
- Returns:
-
- Throws:
ConfigurationException
createInferenceMethodNode
protected com.hammurapi.flow.Node createInferenceMethodNode(com.hammurapi.reasoning.spi.model.RuleSet ruleSet,
com.hammurapi.reasoning.spi.model.Rule rule,
Method method,
com.hammurapi.flow.Flow owner)
- Overrides:
createInferenceMethodNode
in class com.hammurapi.reasoning.impl.RuleSetToFlowCompiler
getInferAnnotation
protected com.hammurapi.reasoning.spi.Infer getInferAnnotation(Method method)
- Overrides:
getInferAnnotation
in class com.hammurapi.reasoning.impl.RuleSetToFlowCompiler