javax.datamining.rule
Interface CompoundPredicate

All Superinterfaces:
Predicate

public interface CompoundPredicate
extends Predicate

A CompundPredicate is a set of predicates connected by logical or relational operators. For example, age < 30 AND salary > 50K is a compound predicate which is connected by a boolean and operator.

Another example on surrogates is a set of simple predicates age < 30, income > 50K, and education = college, with each predicate connected with surrogate operator. If the first predicate cannot be evaluated because the age attribute has a missing value, the next predicate is to be evaluated, in the order of the predicates returned from getPredicates method.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
Predicate

Method Summary
 BooleanOperator getOperator()
          Returns the boolean operator that connects the predicates in the compound predicate.
 Predicate[] getPredicates()
          Returns the simple predicates contained in the compound predicate.
 

Method Detail

getOperator

public BooleanOperator getOperator()
Returns the boolean operator that connects the predicates in the compound predicate. The returned operator must not be null.

Returns:
BooleanOperator

getPredicates

public Predicate[] getPredicates()
Returns the simple predicates contained in the compound predicate.

Returns:
Predicate[]