Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.Preprocessing.RewritingAlgorithms.RULE_T_REWRITING_RESOLVER Class Reference

Inheritance diagram for kddml.Operators.Preprocessing.RewritingAlgorithms.RULE_T_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-T method replaces every sub-sequence of the input string value that matches the pattern with a given replacement string. It scans the input sequence looking for a match of the pattern. Then, each match is replaced in the result by the replacement string that may contain references to captured subsequences. For example, given the regular expression "dog", the input instance value "dogcatdog", and the replacement string "cat", an invocation of this method on a matcher for that expression would yield the string "catcatcat". 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. However, 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_T_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_T_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_T_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_T_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