Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.OperatorResolver Class Reference

Inheritance diagram for kddml.Operators.OperatorResolver:

kddml.Operators.HWResourcesDescription kddml.Operators.AlgorithmLoaderResolver kddml.Operators.IO.IOResolver kddml.Operators.Postprocessing.PostProcessingResolver kddml.Operators.Preprocessing.PreprocessingResolver kddml.Operators.Unclassified.UnclassifiedResolver kddml.Operators.DataMining.DMAlgorithmLoaderResolver kddml.Operators.Preprocessing.PPAlgorithmLoaderResolver kddml.Operators.IO.ExternalResourceReader.ExternalResourceReaderResolver kddml.Operators.IO.ExternalResourceWriter.ExternalResourceWriterResolver kddml.Operators.IO.RepositoryResourceReader.RepositoryResourceReaderResolver kddml.Operators.Postprocessing.CLUSTER_CENTROID_RESOLVER kddml.Operators.Postprocessing.CLUSTER_NUMBER_RESOLVER kddml.Operators.Postprocessing.CLUSTER_PARTITION_RESOLVER kddml.Operators.Postprocessing.CLUSTER_PARTITION_SPARROW_RESOLVER kddml.Operators.Postprocessing.MISCLASSIFIED_RESOLVER kddml.Operators.Postprocessing.RDA_FILTER_RESOLVER kddml.Operators.Postprocessing.RDA_PRESERVED_RESOLVER kddml.Operators.Postprocessing.RDA_SATISFY_RESOLVER kddml.Operators.Postprocessing.SEQUENCE_AGGREGATE_FILTER_RESOLVER kddml.Operators.Postprocessing.SEQUENCE_FILTER_RESOLVER kddml.Operators.Postprocessing.SEQUENCE_MAXIMAL_FILTER_RESOLVER kddml.Operators.Postprocessing.SEQUENCE_RULE_RESOLVER kddml.Operators.Postprocessing.SEQUENCE_SATISFY_RESOLVER kddml.Operators.Postprocessing.SEQUENCE_TIMESTAMP_FILTER_RESOLVER kddml.Operators.Postprocessing.TREE_CLASSIFY_RESOLVER kddml.Operators.Postprocessing.TREE_META_CLASSIFIER_RESOLVER kddml.Operators.Preprocessing.InstanceLevelDependentTransformation kddml.Operators.Preprocessing.InstanceLevelIndependentTransformation kddml.Operators.Preprocessing.PP_TABLE_2_TABLE_RESOLVER kddml.Operators.Preprocessing.SchemaLevelTransformation kddml.Operators.Preprocessing.TABLE_2_PP_TABLE_RESOLVER kddml.Operators.Unclassified.EXT_CALL_RESOLVER kddml.Operators.Unclassified.JDM_CONNECTION_RESOLVER kddml.Operators.Unclassified.PAR_QUERY_RESOLVER kddml.Operators.Unclassified.SCALAR_RESOLVER kddml.Operators.Unclassified.SEQ_QUERY_RESOLVER kddml.Operators.Unclassified.TABLE_2_HIERARCHY_RESOLVER List of all members.

Public Member Functions

void checkArgumentTypes (Vector< KDDMLObject > arguments) throws ResolverException
abstract KDDMLObject execute (Hashtable< String, KDDMLScalarManager > settings, Vector< KDDMLObject > arguments) throws ResolverException, KDDMLCoreException
abstract KDDMLObjectType getArgumentType (int i)
boolean runTimeCheckNeeded ()
boolean abortIfIsEmpty ()
boolean saveXMLOutput ()
int estimatedRAMUsage ()
boolean highDiskAccessIsNeeded ()
String getOperatorName ()

Protected Member Functions

 OperatorResolver ()

Detailed Description

Operator resolver superclass. Resolver incorporates the physical implementation of an operator. Operator resolver can be created through the java reflection, by using the class OperatorFactory. The fragment of code below loads the RDA_MINER operator and starts the execution on a set of attributes and a set of arguments.
....
if (OperatorFactory.isSupported("RDA_MINER")) {
    OperatorResolver resolver = OperatorFactory.newResolverInstance("RDA_MINER");
    resolver.execute(settings, arguments);
}
....

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.Operators.OperatorResolver.OperatorResolver  )  [protected]
 

Proprietary empty constructor. This class cannot be istantied outside of the package. Use the OperatorFactory to create a new OperatorResolver instance.


Member Function Documentation

void kddml.Operators.OperatorResolver.checkArgumentTypes Vector< KDDMLObject arguments  )  throws ResolverException
 

Checks that input arguments have type as required by the getArgumentType(int) method.

Parameters:
arguments Vector the list of argurments as KDDMLObject.
Exceptions:
ResolverException if a not compatible type is found.

abstract KDDMLObject kddml.Operators.OperatorResolver.execute Hashtable< String, KDDMLScalarManager settings,
Vector< KDDMLObject arguments
throws ResolverException, KDDMLCoreException [pure virtual]
 

Returns the result of evaluating the operator over the passed arguments and attributes.
Attributes are given as hashtable, where the key is the name of the XML attribute related to the operator and the value is a KDDMLScalar object containing the attribute value. Attribute value is checked by the interpreter layer and it is correct.
Arguments are given as vector of KDDMLOjbect. Types of arguments are correct, as required by the getArgumentType(int i) method.
Implementations of the execute method can be distinguished according to the type of operator.

Parameters:
settings Hashtable the attributes related to the operator. The key of the hashtable is the name of the attribute. The value of the hashtable is a KDDMLScalar representing the value of the attribute.
arguments Vector the list of arguments as KDDMLObject.
Returns:
KDDMLObject the result of evaluating the operator.
Exceptions:
ResolverException if a resolving error occurs.
KDDMLCoreException if a level core error occurs.

Implemented in kddml.Operators.DataMining.CLUSTER_MINER_RESOLVER, kddml.Operators.DataMining.RDA_MINER_RESOLVER, kddml.Operators.DataMining.SEQUENCE_MINER_RESOLVER, kddml.Operators.DataMining.TREE_MINER_RESOLVER, kddml.Operators.IO.ExternalResourceReader.ExternalResourceReaderResolver, kddml.Operators.IO.ExternalResourceWriter.ARFF_WRITER_RESOLVER, kddml.Operators.IO.ExternalResourceWriter.DATABASE_WRITER_RESOLVER, kddml.Operators.IO.RepositoryResourceReader.RepositoryResourceReaderResolver, kddml.Operators.Postprocessing.CLUSTER_CENTROID_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_NUMBER_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_PARTITION_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SPARROW_RESOLVER, kddml.Operators.Postprocessing.MISCLASSIFIED_RESOLVER, kddml.Operators.Postprocessing.RDA_FILTER_RESOLVER, kddml.Operators.Postprocessing.RDA_PRESERVED_RESOLVER, kddml.Operators.Postprocessing.RDA_SATISFY_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_AGGREGATE_FILTER_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_FILTER_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_MAXIMAL_FILTER_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_RULE_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_SATISFY_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_TIMESTAMP_FILTER_RESOLVER, kddml.Operators.Postprocessing.TREE_CLASSIFY_RESOLVER, kddml.Operators.Postprocessing.TREE_META_CLASSIFIER_RESOLVER, kddml.Operators.Preprocessing.InstanceLevelDependentTransformation, kddml.Operators.Preprocessing.InstanceLevelIndependentTransformation, kddml.Operators.Preprocessing.PP_ADD_HIERARCHY_RESOLVER, kddml.Operators.Preprocessing.PP_NORMALIZATION_RESOLVER, kddml.Operators.Preprocessing.PP_NUMERIC_DISCRETIZATION_RESOLVER, kddml.Operators.Preprocessing.PP_REWRITING_RESOLVER, kddml.Operators.Preprocessing.PP_SAMPLING_RESOLVER, kddml.Operators.Preprocessing.PP_TABLE_2_TABLE_RESOLVER, kddml.Operators.Preprocessing.SchemaLevelTransformation, kddml.Operators.Preprocessing.TABLE_2_PP_TABLE_RESOLVER, kddml.Operators.Unclassified.EXT_CALL_RESOLVER, kddml.Operators.Unclassified.JDM_CONNECTION_RESOLVER, kddml.Operators.Unclassified.PAR_QUERY_RESOLVER, kddml.Operators.Unclassified.SCALAR_RESOLVER, kddml.Operators.Unclassified.SEQ_QUERY_RESOLVER, and kddml.Operators.Unclassified.TABLE_2_HIERARCHY_RESOLVER.

abstract KDDMLObjectType kddml.Operators.OperatorResolver.getArgumentType int  i  )  [pure virtual]
 

Returns the expected type of the i-th argument of the operator. Returns null if the operator do not admit argument as i-th child.

Parameters:
i int
Returns:
KDDMLObjectType

Implemented in kddml.Operators.DataMining.DMAlgorithmLoaderResolver, kddml.Operators.IO.ExternalResourceReader.ExternalResourceReaderResolver, kddml.Operators.IO.ExternalResourceWriter.ARFF_WRITER_RESOLVER, kddml.Operators.IO.ExternalResourceWriter.DATABASE_WRITER_RESOLVER, kddml.Operators.IO.RepositoryResourceReader.RepositoryResourceReaderResolver, kddml.Operators.Postprocessing.CLUSTER_CENTROID_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_NUMBER_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_PARTITION_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SPARROW_RESOLVER, kddml.Operators.Postprocessing.MISCLASSIFIED_RESOLVER, kddml.Operators.Postprocessing.RDA_FILTER_RESOLVER, kddml.Operators.Postprocessing.RDA_PRESERVED_RESOLVER, kddml.Operators.Postprocessing.RDA_SATISFY_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_AGGREGATE_FILTER_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_FILTER_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_MAXIMAL_FILTER_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_RULE_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_SATISFY_RESOLVER, kddml.Operators.Postprocessing.SEQUENCE_TIMESTAMP_FILTER_RESOLVER, kddml.Operators.Postprocessing.TREE_CLASSIFY_RESOLVER, kddml.Operators.Postprocessing.TREE_META_CLASSIFIER_RESOLVER, kddml.Operators.Preprocessing.PP_ADD_HIERARCHY_RESOLVER, kddml.Operators.Preprocessing.PP_HIERARCHICAL_DISCRETIZATION_RESOLVER, kddml.Operators.Preprocessing.PP_MARKING_RESOLVER, kddml.Operators.Preprocessing.PP_NEW_ATTRIBUTE_RESOLVER, kddml.Operators.Preprocessing.PP_NORMALIZATION_RESOLVER, kddml.Operators.Preprocessing.PP_NUMERIC_DISCRETIZATION_RESOLVER, kddml.Operators.Preprocessing.PP_REMOVE_ROWS_RESOLVER, kddml.Operators.Preprocessing.PP_REWRITING_RESOLVER, kddml.Operators.Preprocessing.PP_SAMPLING_RESOLVER, kddml.Operators.Preprocessing.PreprocessingResolver, kddml.Operators.Preprocessing.TABLE_2_PP_TABLE_RESOLVER, kddml.Operators.Unclassified.EXT_CALL_RESOLVER, kddml.Operators.Unclassified.JDM_CONNECTION_RESOLVER, kddml.Operators.Unclassified.PAR_QUERY_RESOLVER, kddml.Operators.Unclassified.SCALAR_RESOLVER, kddml.Operators.Unclassified.SEQ_QUERY_RESOLVER, and kddml.Operators.Unclassified.TABLE_2_HIERARCHY_RESOLVER.

boolean kddml.Operators.OperatorResolver.runTimeCheckNeeded  ) 
 

Returns true if the type of the result of the execute() method is not fixed at compile time, but need to be checked at run-time against the one required by the operator calling. This is required for operators with no fixed output types, such as EXT_CALL or SEQ_QUERY.

Returns:
boolean default returns false.

boolean kddml.Operators.OperatorResolver.abortIfIsEmpty  ) 
 

Returns true if the execution of the query must be interrupted by the interpreter when an empty result is returned as output (e.g. table without instances or association model with no rules and itemsets). Returns false otherwise.

Returns:
boolean default returns false.

boolean kddml.Operators.OperatorResolver.saveXMLOutput  ) 
 

Returns true if the output result must be stored in the system repository. If the method returns false, then the interpreter will not store the result in the system repository. This is required, for example, by the repository loading operators, such as RDA_LOADER or TABLE_LOADER.

Returns:
boolean default returns true.

Reimplemented in kddml.Operators.IO.RepositoryResourceReader.RepositoryResourceReaderResolver.

int kddml.Operators.OperatorResolver.estimatedRAMUsage  ) 
 

Returns the estimated RAM usage for the operator. Must be a value between 0 and 1024 MB.

Returns:
int default returns 256.

Implements kddml.Operators.HWResourcesDescription.

Reimplemented in kddml.Operators.DataMining.DMAlgorithmLoaderResolver, kddml.Operators.IO.RepositoryResourceReader.PP_TABLE_LOADER_RESOLVER, kddml.Operators.IO.RepositoryResourceReader.TABLE_LOADER_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_PARTITION_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SPARROW_RESOLVER, kddml.Operators.Postprocessing.RDA_PRESERVED_RESOLVER, kddml.Operators.Postprocessing.RDA_SATISFY_RESOLVER, kddml.Operators.Postprocessing.TREE_CLASSIFY_RESOLVER, kddml.Operators.Postprocessing.TREE_META_CLASSIFIER_RESOLVER, kddml.Operators.Preprocessing.InstanceLevelDependentTransformation, kddml.Operators.Preprocessing.PP_FOLDING_RESOLVER, kddml.Operators.Preprocessing.PP_HIERARCHICAL_DISCRETIZATION_RESOLVER, kddml.Operators.Preprocessing.PP_NORMALIZATION_RESOLVER, kddml.Operators.Preprocessing.PP_NUMERIC_DISCRETIZATION_RESOLVER, kddml.Operators.Preprocessing.PP_REWRITING_RESOLVER, kddml.Operators.Unclassified.PAR_QUERY_RESOLVER, kddml.Operators.Unclassified.SCALAR_RESOLVER, and kddml.Operators.Unclassified.SEQ_QUERY_RESOLVER.

boolean kddml.Operators.OperatorResolver.highDiskAccessIsNeeded  ) 
 

Returns true if the operator performs an high number of I/O operation to the hard disk.

Returns:
boolean default returns false.

Implements kddml.Operators.HWResourcesDescription.

Reimplemented in kddml.Operators.DataMining.DMAlgorithmLoaderResolver, kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_RESOLVER, kddml.Operators.IO.ExternalResourceReader.DATABASE_LOADER_RESOLVER, kddml.Operators.IO.ExternalResourceWriter.ARFF_WRITER_RESOLVER, kddml.Operators.IO.ExternalResourceWriter.DATABASE_WRITER_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_CENTROID_RESOLVER, kddml.Operators.Postprocessing.CLUSTER_NUMBER_RESOLVER, kddml.Operators.Postprocessing.RDA_SATISFY_RESOLVER, kddml.Operators.Postprocessing.TREE_CLASSIFY_RESOLVER, kddml.Operators.Preprocessing.InstanceLevelDependentTransformation, kddml.Operators.Preprocessing.InstanceLevelIndependentTransformation, and kddml.Operators.Preprocessing.SchemaLevelTransformation.

String kddml.Operators.OperatorResolver.getOperatorName  ) 
 

Returns the operator name.

Returns:
String


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