org.drools.semantics.python
Class BlockConsequence

java.lang.Object
  |
  +--org.drools.semantics.python.Interp
        |
        +--org.drools.semantics.python.Exec
              |
              +--org.drools.semantics.python.BlockConsequence
All Implemented Interfaces:
ConfigurableConsequence, Consequence, SemanticComponent

public class BlockConsequence
extends Exec
implements ConfigurableConsequence

Python block semantics Consequence.

Version:
$Id: BlockConsequence.java,v 1.2 2002/08/28 03:00:34 bob Exp $
Author:
bob mcwhirter

Constructor Summary
BlockConsequence()
          Construct, partially.
BlockConsequence(java.lang.String text)
          Construct.
 
Method Summary
 void invoke(Tuple tuple, WorkingMemory workingMemory)
          Execute the consequence for the supplied matching Tuple.
 
Methods inherited from class org.drools.semantics.python.Exec
configure, execute, execute, execute, setText
 
Methods inherited from class org.drools.semantics.python.Interp
getCode, getNode, getText, setText, setUpDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.smf.ConfigurableConsequence
configure
 

Constructor Detail

BlockConsequence

public BlockConsequence(java.lang.String text)
Construct.
Parameters:
text - The block text.

BlockConsequence

public BlockConsequence()
Construct, partially.
Method Detail

invoke

public void invoke(Tuple tuple,
                   WorkingMemory workingMemory)
            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-2003 The Werken Company. All Rights Reserved.