Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.QueryElement.Condition.PP_MARKING_CONDITION Class Reference

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

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

Detailed Description

This condition can be used to mark preprocessing values of an attribute. In other terms, if the condition is satisfied, then the input attribute of that instance is marked (i.e. a value is added to preprocessing information) with a specified value. This operator works only on the preprocessing section of the input table. In other terms, the physical data will not be changed. Examples include:
  1. to mark all instances with the attribute temperature less than 80;
  2. to mark all instances where the attribute outlook is missing.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)
Version:
2.0.16


Constructor & Destructor Documentation

kddml.Core.QueryElement.Condition.PP_MARKING_CONDITION.PP_MARKING_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.
term1 String the first term.
term1_is_constant boolean.
term2 String the second term value.
term2_is_constant boolean.
term3 String null.
term3_is_constant boolean false.


Member Function Documentation

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

Evaluates a simple case expression. We suppose that body and head items are in a comma separated format.

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.PP_MARKING_CONDITION.isMetaInstancesOperator  )  [protected, virtual]
 

Returns false it the condition is evaluates on a table instance. Returns true if the op_type is evaluated on the preprocessing data, including preprocessing information such as marks associated to a physical instance value.

Returns:
boolean

Implements kddml.Core.QueryElement.Condition.BaseCondition.

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


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