Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.Preprocessing.RewritingAlgorithms.RULE_S_REWRITING_RESOLVER Class Reference

Inheritance diagram for kddml.Operators.Preprocessing.RewritingAlgorithms.RULE_S_REWRITING_RESOLVER:

kddml.Operators.Preprocessing.RewritingAlgorithms.RewritingAlgorithmResolverTask kddml.Operators.Preprocessing.PPAlgorithmResolverTask kddml.Operators.AlgorithmResolverTask List of all members.

Public Member Functions

void readParameters (Hashtable< String, KDDMLScalarManager > parameters) throws ResolverException, KDDMLCoreException
void readStatistics (DataStatisticsManager statistic, DataStatisticsManager PPstatistic) throws ResolverException, KDDMLCoreException
String[] rewrite (String value, String pp_value) throws ResolverException, KDDMLCoreException
String getHistoryDescription ()

Detailed Description

The rule-S method replaces the entire input string value that matches the pattern with a given replacement string that may contain references to captured sub-sequences (see later). Notice that, the matching procedure is performed on the entire input string value, i.e., the algorithm tries to match the entire input sequence against the pattern. For example, the regular expression "dog" match a sub-sequence of the pattern "dogcatdog", but not the entire string. In this example, the matching procedure returns failure.
The user must specify two replacement strings by using two different algorithm parameters.
The first one, called substitution then, is applied to the entire string value if the pattern matches that string; the second one, called substitution else, is applied to the string value only if the pattern does not match. The substitution else parameter is optional. For example, given the regular expression "a*b", the "then" replacement string "ok" and the "else" replacement string "ko", an invocation of this method on the instance value "aaaaab" would yield the string "ok". Otherwise, an invocation on the instance value "aaaaabb" would yield the string "ko". If no substitution is performed, then the instance value is marked (i.e. a string is added to preprocessing information) with an exception for the rewriting attribute. Anyhow, the marking policy is optional.

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


Member Function Documentation

void kddml.Operators.Preprocessing.RewritingAlgorithms.RULE_S_REWRITING_RESOLVER.readParameters Hashtable< String, KDDMLScalarManager parameters  )  throws ResolverException, KDDMLCoreException
 

Reads the XML parameters related to a generic algorithm stored in the ALGORITHM entity. An algorithm settings object captures the parameters associated with a particular algorithm. It allows a knowledgeable user to fine tune algorithm parameters. Generally, not all parameters must be specified, however, those specified are taken into account by the KDDML.
Parameters are given as hashtable, where the key is the name of the parameter related to the algorithm and the value is a KDDMLScalar object containing the parameter value. Parameter value is checked by the interpreter layer and its type is correct.

Parameters:
parameters Hashtable the parameters related to the algorithm. The key of the hashtable is the name of the parameter. The value of the hashtable is a KDDMLScalar representing the value of the parameter.
Exceptions:
ResolverException if a resolving error occurs.
KDDMLCoreException if a level core error occurs.

Implements kddml.Operators.AlgorithmResolverTask.

void kddml.Operators.Preprocessing.RewritingAlgorithms.RULE_S_REWRITING_RESOLVER.readStatistics DataStatisticsManager  statistic,
DataStatisticsManager  PPstatistic
throws ResolverException, KDDMLCoreException
 

Reads the data statistics related to the input preprocessing table.

Parameters:
statistic DataStatisticsManager
PPstatistic DataStatisticManager
Exceptions:
ResolverException 
KDDMLCoreException 

Implements kddml.Operators.Preprocessing.RewritingAlgorithms.RewritingAlgorithmResolverTask.

String [] kddml.Operators.Preprocessing.RewritingAlgorithms.RULE_S_REWRITING_RESOLVER.rewrite String  value,
String  pp_value
throws ResolverException, KDDMLCoreException
 

It rewrites the values of an input value according to the rewriting method. The method takes as input the physical instance value and the related preprocessing value and it returns a bi-dimensional array containing the rewrited physical value and the rewrited preprocessing value.

Parameters:
value String the physical instance attribute whose value must be rewrited.
pp_value String the preprocessing instance attribute whose value must be rewrited.
Returns:
String[] a bi-dimensional array containing the pysical output value as first argument, and the preprocessing output value as second argument.
Exceptions:
ResolverException if a resolver level error occurs.
KDDMLCoreException if a core level error occurs.

Implements kddml.Operators.Preprocessing.RewritingAlgorithms.RewritingAlgorithmResolverTask.

String kddml.Operators.Preprocessing.RewritingAlgorithms.RULE_S_REWRITING_RESOLVER.getHistoryDescription  )  [virtual]
 

Returns a description of the actions performed by this preprocessing algorithm. This description will be reported in the history related to the preprocessing data source.

Returns:
String
Exceptions:
KDDMLCoreException 

Implements kddml.Operators.Preprocessing.PPAlgorithmResolverTask.


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