com.hammurapi.review.util
Class InspectorMethodNode

java.lang.Object
  extended by com.hammurapi.reasoning.impl.ReasoningNodeBase<F>
      extended by com.hammurapi.reasoning.impl.InferenceMethodNode<Object>
          extended by com.hammurapi.review.util.InspectorMethodNode
All Implemented Interfaces:
Component<ObjectDefinition>, com.hammurapi.flow.runtime.FlowElement, com.hammurapi.flow.runtime.Node<List<?>,Integer,com.hammurapi.reasoning.impl.KnowledgeBase<Object>,com.hammurapi.reasoning.impl.InferenceToken<Object>>

public class InspectorMethodNode
extends com.hammurapi.reasoning.impl.InferenceMethodNode<Object>
implements Component<ObjectDefinition>


Field Summary
 
Fields inherited from class com.hammurapi.reasoning.impl.ReasoningNodeBase
isFine, knowledgeBase, method, methodName, parameterTypes, pins, rule, ruleDescription, ruleName
 
Constructor Summary
InspectorMethodNode()
           
 
Method Summary
protected  boolean handleException(Object[] args, Exception e)
          Creates warnings for exceptions in inspector methods.
 void init(ConfigurationContext<ObjectDefinition> context)
           
protected  void onConclusion(Object[] args, Object conclusion)
          Injects inspector and source into observation.
 void setInspectorName(String inspectorName)
           
 
Methods inherited from class com.hammurapi.reasoning.impl.InferenceMethodNode
process
 
Methods inherited from class com.hammurapi.reasoning.impl.ReasoningNodeBase
addPin, afterConnect, beforeConnect, getInputPins, getInvocable, getInvoker, getPriority, invoke, partialJoin, setKnowledgeBase, setMethodName, setParameterTypes, setPriority, setRuleDescription, setRuleIndex, setRuleName, setRules, sortInputs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InspectorMethodNode

public InspectorMethodNode()
Method Detail

onConclusion

protected void onConclusion(Object[] args,
                            Object conclusion)
Injects inspector and source into observation.

Overrides:
onConclusion in class com.hammurapi.reasoning.impl.InferenceMethodNode<Object>

handleException

protected boolean handleException(Object[] args,
                                  Exception e)
                           throws Exception
Creates warnings for exceptions in inspector methods.

Overrides:
handleException in class com.hammurapi.reasoning.impl.InferenceMethodNode<Object>
Throws:
Exception

init

public void init(ConfigurationContext<ObjectDefinition> context)
          throws ConfigurationException
Specified by:
init in interface Component<ObjectDefinition>
Throws:
ConfigurationException

setInspectorName

public void setInspectorName(String inspectorName)