com.hammurapi.review.util
Class InspectorSetCompiler

java.lang.Object
  extended by com.hammurapi.reasoning.impl.RuleSetToFlowCompiler
      extended by 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

Field Summary
 
Fields inherited from interface com.hammurapi.reasoning.impl.Constants
CONDITION_NO, DEFAULT, INPUT, LINE_SEPARATOR, OUTPUT, PUT, RULE_INDEX
 
Constructor Summary
InspectorSetCompiler()
           
 
Method Summary
 com.hammurapi.flow.Flow compile(InspectorSet source, FactoryConfig factoryConfig)
          Compiles inspector set to flow.
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)
           
protected  com.hammurapi.reasoning.spi.Infer getInferAnnotation(Method method)
           
 
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
 

Constructor Detail

InspectorSetCompiler

public InspectorSetCompiler()
Method Detail

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