org.drools.semantics.java
Class BlockConsequence
java.lang.Object
|
+--org.drools.semantics.java.Interp
|
+--org.drools.semantics.java.BlockConsequence
- All Implemented Interfaces:
- ConfigurableConsequence, Consequence, SemanticComponent
- public class BlockConsequence
- extends Interp
- implements ConfigurableConsequence
Java block semantics Consequence
.
- Version:
- $Id: BlockConsequence.java,v 1.9 2003/03/25 19:47:29 tdiesler Exp $
- Author:
- bob@werken.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockConsequence
public BlockConsequence()
- Construct, partially.
- See Also:
Interp.setText(java.lang.String)
BlockConsequence
public BlockConsequence(java.lang.String block)
- Construct.
- Parameters:
block
- The statement block.
configure
public void configure(java.lang.String text,
Declaration[] decls)
throws ConfigurationException
- Configure.
- Specified by:
configure
in interface ConfigurableConsequence
- Parameters:
text
- Configuration text.decls
- Available declarations.- Throws:
ConfigurationException
- If an error occurs while
attempting to perform configuration.
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.NullPointerException
- If the working memory is
null
.
Copyright © 2001-2003 The Werken Company. All Rights Reserved.