|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.examples.primefactors.FactorCondition
Constructor Summary | |
FactorCondition(Declaration numberDecl,
int prime)
|
Method Summary | |
Declaration[] |
getRequiredTupleMembers()
Retrieve the array of Declaration s required by this
condition to perform its duties. |
boolean |
isAllowed(Tuple tuple)
Determine if the supplied Tuple is allowed by this
condition. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FactorCondition(Declaration numberDecl, int prime)
Method Detail |
public boolean isAllowed(Tuple tuple)
Condition
Tuple
is allowed by this
condition.
isAllowed
in interface Condition
tuple
- The Tuple
to test.
true
if the Tuple
passes this
condition, else false
.public Declaration[] getRequiredTupleMembers()
Condition
Declaration
s required by this
condition to perform its duties.
getRequiredTupleMembers
in interface Condition
Declarations
expected on incoming
Tuples
.public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |