org.drools.examples.primefactors
Class FactorConsequence

java.lang.Object
  extended byorg.drools.examples.primefactors.FactorConsequence
All Implemented Interfaces:
Consequence, SemanticComponent, java.io.Serializable

public class FactorConsequence
extends java.lang.Object
implements Consequence

See Also:
Serialized Form
 

Constructor Summary
FactorConsequence(Declaration numberDecl, int prime)
           
 
Method Summary
 void invoke(Tuple tuple, WorkingMemory workingMemory)
          Execute the consequence for the supplied matching Tuple.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactorConsequence

public FactorConsequence(Declaration numberDecl,
                         int prime)
Method Detail

invoke

public void invoke(Tuple tuple,
                   WorkingMemory workingMemory)
Description copied from interface: Consequence
Execute the consequence for the supplied matching Tuple.

Specified by:
invoke in interface Consequence
Parameters:
tuple - The matching tuple.
workingMemory - The working memory session.

toString

public java.lang.String toString()