org.drools.semantics.python
Class Exec

java.lang.Object
  extended byorg.drools.semantics.python.Interp
      extended byorg.drools.semantics.python.Exec
Direct Known Subclasses:
BlockConsequence

public class Exec
extends Interp

Base class for Jython statement-based Python semantic components.

Author:
bob mcwhirter , Christiaan ten Klooster
See Also:
BlockConsequence

Constructor Summary
protected Exec(String text, Rule rule)
          Construct.
 
Method Summary
protected  void execute(org.python.core.PyDictionary locals)
          Execute.
 void execute(Tuple tuple)
          Execute.
 
Methods inherited from class org.drools.semantics.python.Interp
getCode, getGlobals, getGlobals, getNode, 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)
             throws Exception
Execute.

Parameters:
tuple - Tuple containing variable bindings.
Throws:
Exception

execute

protected void execute(org.python.core.PyDictionary locals)
                throws Exception
Execute.

Parameters:
locals - The evaluation dictionary.
Throws:
Exception


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