org.drools.semantics.java
Class JavaBlockConsequence

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

public class JavaBlockConsequence
extends Object
implements Consequence, Serializable

Java block semantics Consequence.

Author:
bob@werken.com
See Also:
Serialized Form

Nested Class Summary
static interface JavaBlockConsequence.Script
           
 
Constructor Summary
JavaBlockConsequence(Rule rule, int id, String block)
          Construct.
 
Method Summary
 void invoke(Tuple tuple)
          Execute the consequence for the supplied matching Tuple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBlockConsequence

public JavaBlockConsequence(Rule rule,
                            int id,
                            String block)
                     throws Exception
Construct.

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