org.drools.semantics.groovy
Class Exec

java.lang.Object
  extended byorg.drools.semantics.groovy.Interp
      extended byorg.drools.semantics.groovy.Exec
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BlockConsequence

public class Exec
extends Interp

Base class for Groovy-based semantic components.

Version:
$Id: Exec.java,v 1.8 2004/11/29 12:14:43 simon Exp $
Author:
bob mcwhirter , James Strachan , Christiaan ten Klooster
See Also:
BlockConsequence, Serialized Form

Constructor Summary
protected Exec(String text, Rule rule)
          Construct.
 
Method Summary
protected  void execute(groovy.lang.Binding locals)
          Execute.
 void execute(Tuple tuple)
          Execute.
 
Methods inherited from class org.drools.semantics.groovy.Interp
getCode, getRule, getText, setUpDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exec

protected Exec(String text,
               Rule rule)
Construct.

Method Detail

execute

public void execute(Tuple tuple)
Execute.

Parameters:
tuple - Tuple containing variable bindings.

execute

protected void execute(groovy.lang.Binding locals)
Execute.

Parameters:
locals - The evaluation dictionary.


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