org.drools.semantics.java
Class BlockConsequence

java.lang.Object
  |
  +--org.drools.semantics.java.Interp
        |
        +--org.drools.semantics.java.BlockConsequence
All Implemented Interfaces:
Consequence, SemanticComponent, java.io.Serializable

public class BlockConsequence
extends Interp
implements Consequence

Java block semantics Consequence.

Version:
$Id: BlockConsequence.java,v 1.12 2003/11/28 06:43:01 bob Exp $
Author:
bob@werken.com
See Also:
Serialized Form

Constructor Summary
BlockConsequence(java.lang.String block)
          Construct.
 
Method Summary
 void invoke(Tuple tuple, WorkingMemory workingMemory)
          Execute the consequence for the supplied matching Tuple.
 
Methods inherited from class org.drools.semantics.java.Interp
evaluate, evaluate, getText, setText, setUpNameSpace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockConsequence

public BlockConsequence(java.lang.String block)
Construct.

Parameters:
block - The statement block.
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.