Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.QueryElement.Condition.SEQUENCE_FILTER_CONDITION Class Reference

Inheritance diagram for kddml.Core.QueryElement.Condition.SEQUENCE_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.

Protected Member Functions

 SEQUENCE_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 evalMissingAttribute ()
boolean isMetaInstancesOperator ()

Detailed Description

This condition can be used to filter a set of sequential patterns. The condition is expressed by using an AND/OR/NOT combination between a set of primitive filters, concerning:
  1. support constraint that specifies a requirement on the support of the sequence (e.g. to filter sequences with a support less than 1);
  2. item constraint that specifies what are the particular individual or groups of items that should or should not be present in the pattern (e.g. to filter sequences with the item "milk" in the sequence);
  3. length constraint used to specifY the requirement on the length of the patterns, where the length can be either the number of distinct items, or the number of sets, or the maximal number of items per set (e.g. to filter sequences with exactly 3 distinct items);
  4. super-pattern constraint finds patterns that contain a particular list of sets as sub-pattern (e.g. to filter sequences that contains first the item "spaghetti" and then the item "milk").

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_FILTER_CONDITION.SEQUENCE_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: sequence_support, sequence_cardinality, sequence_distinct_items_cardinality, max_number_of_items_per_set, sequence.
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_FILTER_CONDITION.evalSimpleCase String  op,
String[]  values
throws XMLSpecialElementException [protected, virtual]
 

Evaluates a simple case expression. We suppose that the elements of the sequence are in the following form: <i1,...,in>(d)<i1,...im>.

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_FILTER_CONDITION.evalMissingAttribute  )  [protected, 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.

boolean kddml.Core.QueryElement.Condition.SEQUENCE_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.


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