org.drools.semantics.groovy
Class GroovyBlockConsequence

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

public class GroovyBlockConsequence
extends GroovyInterp
implements Consequence

Groovy block semantics Consequence.

Author:
James Strachan , bob mcwhirter , Christiaan ten Klooster
See Also:
Serialized Form

Constructor Summary
GroovyBlockConsequence(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.groovy.GroovyInterp
getCode, getRule, getText, setUpDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyBlockConsequence

public GroovyBlockConsequence(String text,
                              Rule rule)
Construct.

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