Inheritance diagram for kddml.Core.QueryElement.Condition.BaseCondition:
Public Member Functions | |
BaseCondition (String op_type, String term1, boolean term1_is_constant, String term2, boolean term2_is_constant, String term3, boolean term3_is_constant) | |
void | checkConditionValidity () throws XMLSpecialElementException |
BaseConditionDescr | getConditionDescription () throws XMLSpecialElementException |
boolean | evalCond (weka.core.Instance instance, weka.core.Instance meta_instance) throws XMLSpecialElementException |
Protected Member Functions | |
abstract boolean | isMetaInstancesOperator () |
abstract boolean | evalMissingAttribute () |
abstract boolean | evalSimpleCase (String op, String[] values) throws XMLSpecialElementException |
boolean | evalEqual (String v1, String v2) |
boolean | evalNotEqual (String v1, String v2) |
boolean | evalGreater (String v1, String v2) throws XMLSpecialElementException |
boolean | evalGreaterOrEqual (String v1, String v2) throws XMLSpecialElementException |
boolean | evalLess (String v1, String v2) throws XMLSpecialElementException |
boolean | evalLessOrEqual (String v1, String v2) throws XMLSpecialElementException |
Title: KDDML
Description: Knowledge Discovery in Database Environment
Copyright: Copyright (c) 2003-2005
Company: Universita' di Pisa - Dipartimento di Informatica
|
Constructor.
|
|
Checks the static correctness of this condition. In particular, for each primitive case of the condition, the method checks if the terms refere to a legal type as defined in the language DTDs and the operation type is supported. Throws an exception if some base term do not match the KDDML language DTDs. It checks if:
Implements kddml.Core.QueryElement.Condition.ConditionChecker. |
|
Returns the class description for this base condition.
|
|
Evaluates this condition on input istance. Here, instance stand both for a relational tupla and a preprocessing tupla. In the first case, the field preprocessing_instance is null.
Reimplemented in kddml.Core.QueryElement.Condition.PP_REWRITING_CONDITION. |
|
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.
Implemented in kddml.Core.QueryElement.Condition.IF_CONDITION, kddml.Core.QueryElement.Condition.IF_EXPRESSION_CONDITION, kddml.Core.QueryElement.Condition.PP_MARKING_CONDITION, kddml.Core.QueryElement.Condition.PP_REMOVE_ROWS_CONDITION, kddml.Core.QueryElement.Condition.PP_REWRITING_CONDITION, kddml.Core.QueryElement.Condition.RDA_FILTER_CONDITION, kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION, and kddml.Core.QueryElement.Condition.SEQUENCE_FILTER_CONDITION. |
|
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.
Implemented in kddml.Core.QueryElement.Condition.IF_CONDITION, kddml.Core.QueryElement.Condition.IF_EXPRESSION_CONDITION, kddml.Core.QueryElement.Condition.PP_MARKING_CONDITION, kddml.Core.QueryElement.Condition.PP_REMOVE_ROWS_CONDITION, kddml.Core.QueryElement.Condition.PP_REWRITING_CONDITION, kddml.Core.QueryElement.Condition.RDA_FILTER_CONDITION, kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION, and kddml.Core.QueryElement.Condition.SEQUENCE_FILTER_CONDITION. |
|
Evaluates a simple case expression.
Implemented in kddml.Core.QueryElement.Condition.IF_CONDITION, kddml.Core.QueryElement.Condition.IF_EXPRESSION_CONDITION, kddml.Core.QueryElement.Condition.PP_MARKING_CONDITION, kddml.Core.QueryElement.Condition.PP_REMOVE_ROWS_CONDITION, kddml.Core.QueryElement.Condition.PP_REWRITING_CONDITION, kddml.Core.QueryElement.Condition.RDA_FILTER_CONDITION, kddml.Core.QueryElement.Condition.SEQUENCE_AGGREGATE_FILTER_CONDITION, and kddml.Core.QueryElement.Condition.SEQUENCE_FILTER_CONDITION. |
|
Evaluates the equal operator. Returns true if v1 = v2. It can be appled to numeric or string values.
|
|
Evaluates the not_equal operator. Returns true if v1 != v2. It can be appled to numeric or string values.
|
|
Evaluates the greater operator. Returns true if v1 > v2. It can be appled to numeric values only.
|
|
Evaluates the greater_or_equal operator. Returns true if v1 >= v2. It can be appled to numeric values only.
|
|
Evaluates the less operator. Returns true if v1 < v2. It can be appled to numeric values only.
|
|
Evaluates the less_or_equal operator. Returns true if v1 <= v2. It can be appled to numeric values only.
|