org.drools.semantics.python
Class BlockConsequence
java.lang.Object
org.drools.semantics.python.Interp
org.drools.semantics.python.Exec
org.drools.semantics.python.BlockConsequence
- All Implemented Interfaces:
- Consequence, SemanticComponent, Serializable
- public class BlockConsequence
- extends Exec
- implements Consequence
Python block semantics Consequence
.
- Author:
- bob mcwhirter
- See Also:
- Serialized Form
Method Summary |
void |
invoke(Tuple tuple,
WorkingMemory workingMemory)
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 |
BlockConsequence
public BlockConsequence(String text,
Rule rule)
- Construct.
- Parameters:
text
- The block text.
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.
Copyright © 2001-2004 The Codehaus. All Rights Reserved.