org.drools.spi
Interface Condition
- All Superinterfaces:
- SemanticComponent
- All Known Subinterfaces:
- ConfigurableCondition
- public interface Condition
- extends SemanticComponent
A Condition
that filters facts.
- Version:
- $Id: Condition.java,v 1.7 2002/08/17 05:49:22 bob Exp $
- Author:
- bob mcwhirter
- See Also:
Tuple
getRequiredTupleMembers
public Declaration[] getRequiredTupleMembers()
- Retrieve the array of
Declaration
s required
by this condition to perform its duties.
- Returns:
- The array of
Declarations
expected
on incoming Tuples
.
isAllowed
public boolean isAllowed(Tuple tuple)
throws ConditionException
- Determine if the supplied
Tuple
is allowed
by this condition.
- Parameters:
tuple
- The Tuple
to test.- Returns:
true
if the Tuple
passes this condition, else false
.- Throws:
ConditionException
- if an error occurs during filtering.
Copyright © 2001-2003 The Werken Company. All Rights Reserved.