Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.QueryElement.Expression.IfTerm Class Reference

Inheritance diagram for kddml.Core.QueryElement.Expression.IfTerm:

kddml.Core.QueryElement.Expression.Expression kddml.Core.QueryElement.XMLSpecialElement kddml.Core.KDDMLObject kddml.Core.HTMLTranslator List of all members.

Public Member Functions

String evalExpr (Instance instance) throws KDDMLCoreException

Protected Member Functions

 IfTerm (IF_EXPRESSION_CONDITION cond, Expression then, Expression _else)

Detailed Description

IfTerm represents a conditional statement in an expression. It is used to evaluate a then statement or an (optional) else statement according to a condition.

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)

Sandra Zimei

Version:
2.0.16


Constructor & Destructor Documentation

kddml.Core.QueryElement.Expression.IfTerm.IfTerm IF_EXPRESSION_CONDITION  cond,
Expression  then,
Expression  _else
[protected]
 

Constructor.

Parameters:
cond Condition the condition
then Expression the then statement
_else Expression the else statement. Can be null.


Member Function Documentation

String kddml.Core.QueryElement.Expression.IfTerm.evalExpr Instance  instance  )  throws KDDMLCoreException [virtual]
 

Evaluates the expression on input instance. The tupla is defined in weka.core.Instance class. It evaluates the condition on input instance. If the condition returns true, then it evaluates the then statement. Otherwise, it evaluate the else statement if it exist. If the else statement is null, the method returns a missing character "?".

Parameters:
instance Instance the input instance as in weka.core.Instance.
Exceptions:
KDDMLCoreException 
Returns:
String the expression evaluation as string or the missing value "?".

Implements kddml.Core.QueryElement.Expression.Expression.


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