org.drools.semantics.python
Class PythonBlockConsequence

java.lang.Object
  extended by org.drools.semantics.python.PythonInterp
      extended by org.drools.semantics.python.PythonBlockConsequence
All Implemented Interfaces:
Serializable, Consequence, SemanticComponent

public class PythonBlockConsequence
extends PythonInterp
implements Consequence

Python block semantics Consequence.

Author:
bob mcwhirter
See Also:
Serialized Form

Constructor Summary
protected PythonBlockConsequence(String text, Rule rule)
          Construct.
 
Method Summary
 void invoke(Tuple tuple)
          Execute the consequence for the supplied matching Tuple.
 
Methods inherited from class org.drools.semantics.python.PythonInterp
getCode, getGlobals, getGlobals, getNode, getRule, getText, setUpDictionary, stripOuterIndention
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PythonBlockConsequence

protected PythonBlockConsequence(String text,
                                 Rule rule)
Construct.

Method Detail

invoke

public void invoke(Tuple tuple)
            throws ConsequenceException
Execute the consequence for the supplied matching Tuple.

Specified by:
invoke in interface Consequence
Parameters:
tuple - The matching tuple.
workingMemory - The working memory session.
Throws:
ConsequenceException - If an error occurs while attempting to invoke the consequence.


Copyright © 2001-2005 The Codehaus. All Rights Reserved.