org.drools.examples.primefactors
Class FactorConsequence

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

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)
          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)
Description copied from interface: Consequence
Execute the consequence for the supplied matching Tuple.

Specified by:
invoke in interface Consequence
Parameters:
tuple - The matching tuple.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object