Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION Class Reference

Inheritance diagram for kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION:

kddml.Core.QueryElement.Condition.BaseCondition kddml.Core.QueryElement.Condition.Condition kddml.Core.QueryElement.XMLSpecialElement kddml.Core.QueryElement.Condition.ConditionChecker kddml.Core.QueryElement.Condition.ConditionResolver kddml.Core.KDDMLObject kddml.Core.HTMLTranslator List of all members.

Public Member Functions

boolean evalMissingAttribute ()

Protected Member Functions

 SEQUENCE_AGGREGATE_FILTER_CONDITION (String type, String term1, boolean term1_is_constant, String term2, boolean term2_is_constant, String term3, boolean term3_is_constant)
boolean evalSimpleCase (String op, String[] values) throws XMLSpecialElementException
boolean isMetaInstancesOperator ()

Detailed Description

This condition can be used to filter a set of sequential patterns according to an aggregate constraint that is a constraint on an aggregate of items in a pattern, where the aggregate function can be sum, average, max, min, standard deviation (e.g., return all sequences in witch the average price of all items is over than 100$). Values for aggregate of items of the sequence (e.g., the price of item in the example above) are contained in the input time-stamp table. An example includes: return all the sequences in witch the sum of quantities of all items is equal to 10.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Daniele Cerra (daniele@cerra.info)
Version:
2.0.16


Constructor & Destructor Documentation

kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION.SEQUENCE_AGGREGATE_FILTER_CONDITION String  type,
String  term1,
boolean  term1_is_constant,
String  term2,
boolean  term2_is_constant,
String  term3,
boolean  term3_is_constant
[protected]
 

Constructor.

Parameters:
type String the value of op_type attribute. It can be equal, not_equal, less, less_or_equal, greater, greater_or_equal, is_in, is_not_in.
term1 String the first term. It can be itemset_support, rda_support, rda_confidence, itemset_cardinality, body_cardinality, head_cardinality, itemset, body, head.
term1_is_constant boolean true
term2 String the second term value. It cannot be null.
term2_is_constant boolean false.
term3 String null.
term3_is_constant boolean false.


Member Function Documentation

boolean kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION.evalSimpleCase String  op,
String[]  values
throws XMLSpecialElementException [protected, virtual]
 

Evaluates a simple case expression.

Parameters:
op String the operator type.
values String[] the term values. The size of the array is equal to the cardinality of the op_type. If the value referes to a missing table attribute, then the array value is null.
Exceptions:
XMLSpecialElementException 
Returns:
boolean the condition evaluation.

Implements kddml.Core.QueryElement.Condition.BaseCondition.

boolean kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION.isMetaInstancesOperator  )  [protected, virtual]
 

Returns false it the condition is evaluates on a table instance. Returns true if the operator is evaluated on a preprocessing instances also. The last one is used for preprocessing operators.

Returns:
boolean

Implements kddml.Core.QueryElement.Condition.BaseCondition.

boolean kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION.evalMissingAttribute  )  [virtual]
 

Evaluates the condition if the attribute value is missing. Returns true if the condition is true when a missing attribute value is found. Returns false otherwise.

Returns:
boolean

Implements kddml.Core.QueryElement.Condition.BaseCondition.


Generated on Thu Feb 23 13:04:45 2006 for kddml by  doxygen 1.4.3