|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The interface RulesFilter provides
the specification for a rules filter to be used
for retrieval of the rules that satisfies the
specified conditions.
| Method Summary | |
java.lang.Object[] |
getItems(RuleComponentOption componentOption,
boolean included)
Returns the items to be included in the component of the rules to be selected. |
int |
getMaxNumberOfRules()
Returns the maximum number of rules for the result. |
java.lang.Double |
getMaxValue(RuleProperty type)
Returns the maximum value of the range for the specified rule property. |
java.lang.Double |
getMinValue(RuleProperty type)
Returns the minimum value for the specified rule property. |
SortOrder |
getOrderingCondition(RuleProperty orderBy)
Returns the sorting order of the ordering condition for the rules after they are filtered. |
RuleProperty[] |
getOrderingConditions()
Returns an array of the ordering conditions for the rules after they are filtered. |
ComparisonOperator |
getThresholdOperator(RuleProperty property)
Returns the threshold comparison operator associated with the specified rule property. |
java.lang.Double |
getThresholdValue(RuleProperty property)
Returns the threshold value associated with the specified rule property. |
void |
setItems(java.lang.Object[] itemArray,
RuleComponentOption componentOption,
boolean included)
Sets the items to be included in the specified component of the rules to be selected. |
void |
setMaxNumberOfRules(int maxRules)
Sets the maximum number of rules for the result. |
void |
setOrderingCondition(RuleProperty[] orderByArray,
SortOrder[] sortOrderArray)
Sets the ordering condition for the rules after they are filtered. |
void |
setRange(RuleProperty type,
double minValue,
double maxValue)
Sets a range of the specified rule property. |
void |
setThreshold(RuleProperty property,
ComparisonOperator compOp,
double thresholdValue)
Sets a threshold value with a comparison operator. |
| Method Detail |
public java.lang.Object[] getItems(RuleComponentOption componentOption,
boolean included)
componentOption - included -
public int getMaxNumberOfRules()
public java.lang.Double getMaxValue(RuleProperty type)
setRange has not been invoked.
type - The type of rule property whose maximum value is to be returned.
public java.lang.Double getMinValue(RuleProperty type)
setRange has not been invoked.
type - The type of rule property whose minimum value is to be returned,
public SortOrder getOrderingCondition(RuleProperty orderBy)
orderBy - The ordering condition whose sorting order is to be returned.
public RuleProperty[] getOrderingConditions()
public ComparisonOperator getThresholdOperator(RuleProperty property)
property -
public java.lang.Double getThresholdValue(RuleProperty property)
property -
public void setItems(java.lang.Object[] itemArray,
RuleComponentOption componentOption,
boolean included)
If included is false, the specified itemset is to be excluded.
itemArray - componentOption - A component of the rules to be considered for selection.included - A flag to indicate whether the specified itemset is to be included (if true) or excluded (if false).
public void setMaxNumberOfRules(int maxRules)
maxRules - The maximum number of rules.
public void setOrderingCondition(RuleProperty[] orderByArray,
SortOrder[] sortOrderArray)
orderByArray - An array of the rule properties by which filtered rules are ordered.sortOrderArray - An array of the sorting orders.
public void setRange(RuleProperty type,
double minValue,
double maxValue)
The parameter RuleProperty cannot be null,
The minimum and maximum values cannot be negative or min > max.
type - The type of rule property for the range to be set.minValue - The minimum value of the range.maxValue - The maximum value of the range.
public void setThreshold(RuleProperty property,
ComparisonOperator compOp,
double thresholdValue)
The parameters property and compOp cannot be null.
This method is used exclusively with setRange method. A rule property that has already been used for range is nullified if used again with setThreshold method.
property - compOp - thresholdValue -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||