Inheritance diagram for kddml.Operators.OperatorSettings:
Public Member Functions | |
void | checkAttributes (Hashtable< String, KDDMLScalarManager > attributes) throws SettingsException |
Hashtable< String, KDDMLScalarManager > | refreshAttributes (Hashtable< String, KDDMLScalarManager > attributes) |
abstract String[] | listAttributes () |
abstract Boolean | isRequired (String attribute_name) |
abstract Boolean | isFixed (String attribute_name) |
abstract String | getDefaultAttributeValue (String attribute_name) |
abstract KDDMLScalarType | getAttributeType (String attribute_name) |
void | checkCorrelationBetweenAttributes (Hashtable< String, KDDMLScalarManager > attributes) throws SettingsException |
String | getOperatorName () |
Protected Member Functions | |
OperatorSettings () |
This class performs a correctness control about the types and the usage of input attributes values related to the operator.
Operator setting can be created through the java reflection, by using the class OperatorFactory. The fragment of code below loads the RDA_MINER operator and print out the list of related attributes.
....
if (OperatorFactory.isSupported("RDA_MINER")) {
OperatorSettings factory = OperatorFactory.newSettingsInstance("RDA_MINER");
factory.listAttributes();
}
....
Title: KDDML
Description: Knowledge Discovery in Database Environment
Copyright: Copyright (c) 2003-2005
Company: Universita' di Pisa - Dipartimento di Informatica
|
Proprietary empty constructor. This class cannot be istantied outside of the package. Use the OperatorFactory to create a new OperatorSettings instance. |
|
Performs a correctness control about the input attributes of the operator (e.g., check that the level attribute of the PP_HIERARCHY_DISCRETIZATION operator is a positive integer number. Attributes are given as hash-table where the key of the hashtable is the XML attribute name and the value of the hashtable is the XML attribute value as KDDMLScalarManager. The method throws an exception if an error is occurs. More precisely, for each attribute returned by listAttributes(), the method checks if the hashtable contains the attribute. If this is the case, then a type checking is performed on attribute value. Otherwise, if the attribute is required (i.e. the method isRequired() returns true), then the method throws an exception.
Reimplemented in kddml.Operators.AlgorithmLoaderSettings, kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS, and kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS. |
|
Sets the types and the default values of all attributes returned by the listAttributes() method. The type is obtained by means the method getAttributeType(attr_name) that takes the attribute name as input. If the attribute value is fixed (i.e. the method isFixed(attr_name) returns true), then its value is replaced with the default value in the hashtable. The default value is obtained by means the method getDefaultValue(attr_name) that takes the attribute name as input. Finally, if an optional attribute do not belong to the hashtable and a default value is provided for that attribute, then its value is added to the input hashtable. The method returns the new hashtable as output.
Reimplemented in kddml.Operators.AlgorithmLoaderSettings. |
|
|
|
Returns true if a given attribute is fixed (i.e. constant) in the operator specification. Returns false if the attribute is implied or required. Finally, the method returns null if the attribute name do not belong to the list of attributes returned by the method listAttributes().
Implemented in kddml.Operators.AlgorithmLoaderSettings, kddml.Operators.DataMining.TREE_MINER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.DATABASE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_CLUSTER_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_RDA_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_SEQUENCE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_TREE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceWriter.ARFF_WRITER_SETTINGS, kddml.Operators.IO.ExternalResourceWriter.DATABASE_WRITER_SETTINGS, kddml.Operators.IO.RepositoryResourceReader.RepositoryResourceReaderSettings, kddml.Operators.Postprocessing.CLUSTER_CENTROID_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_NUMBER_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SPARROW_SETTINGS, kddml.Operators.Postprocessing.MISCLASSIFIED_SETTINGS, kddml.Operators.Postprocessing.RDA_FILTER_SETTINGS, kddml.Operators.Postprocessing.RDA_PRESERVED_SETTINGS, kddml.Operators.Postprocessing.RDA_SATISFY_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_AGGREGATE_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_MAXIMAL_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_RULE_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_SATISFY_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_TIMESTAMP_FILTER_SETTINGS, kddml.Operators.Postprocessing.TREE_CLASSIFY_SETTINGS, kddml.Operators.Postprocessing.TREE_META_CLASSIFIER_SETTINGS, kddml.Operators.Preprocessing.PP_ADD_HIERARCHY_SETTINGS, kddml.Operators.Preprocessing.PP_CHANGE_TYPE_SETTINGS, kddml.Operators.Preprocessing.PP_DIVIDING_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_FILTER_ATTRIBUTES_SETTINGS, kddml.Operators.Preprocessing.PP_FOLDING_SETTINGS, kddml.Operators.Preprocessing.PP_HIERARCHICAL_DISCRETIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_MARK_DUPLICATES_SETTINGS, kddml.Operators.Preprocessing.PP_MARKING_SETTINGS, kddml.Operators.Preprocessing.PP_NEW_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_NORMALIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_NUMERIC_DISCRETIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS, kddml.Operators.Preprocessing.PP_REMOVE_ROWS_SETTINGS, kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS, kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS, kddml.Operators.Preprocessing.PP_SORTING_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_TABLE_2_TABLE_SETTINGS, kddml.Operators.Preprocessing.TABLE_2_PP_TABLE_SETTINGS, kddml.Operators.Unclassified.EXT_CALL_SETTINGS, kddml.Operators.Unclassified.JDM_CONNECTION_SETTINGS, kddml.Operators.Unclassified.PAR_QUERY_SETTINGS, kddml.Operators.Unclassified.SCALAR_SETTINGS, kddml.Operators.Unclassified.SEQ_QUERY_SETTINGS, and kddml.Operators.Unclassified.TABLE_2_HIERARCHY_SETTINGS. |
|
Returns the default value related to a given input attribute. Returns null if the attribute do not admit a default value. An attribute can be given any legal value as a default. The attribute value is not required on each element in the document, but if it is not present, it will appear to be the specified default. If the attribute is implied and it is not included in the element, the operator assumes that this is the attribute value.
Implemented in kddml.Operators.AlgorithmLoaderSettings, kddml.Operators.DataMining.TREE_MINER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.DATABASE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_CLUSTER_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_RDA_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_SEQUENCE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_TREE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceWriter.ARFF_WRITER_SETTINGS, kddml.Operators.IO.ExternalResourceWriter.DATABASE_WRITER_SETTINGS, kddml.Operators.IO.RepositoryResourceReader.RepositoryResourceReaderSettings, kddml.Operators.Postprocessing.CLUSTER_CENTROID_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_NUMBER_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SPARROW_SETTINGS, kddml.Operators.Postprocessing.MISCLASSIFIED_SETTINGS, kddml.Operators.Postprocessing.RDA_FILTER_SETTINGS, kddml.Operators.Postprocessing.RDA_PRESERVED_SETTINGS, kddml.Operators.Postprocessing.RDA_SATISFY_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_AGGREGATE_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_MAXIMAL_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_RULE_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_SATISFY_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_TIMESTAMP_FILTER_SETTINGS, kddml.Operators.Postprocessing.TREE_CLASSIFY_SETTINGS, kddml.Operators.Postprocessing.TREE_META_CLASSIFIER_SETTINGS, kddml.Operators.Preprocessing.PP_ADD_HIERARCHY_SETTINGS, kddml.Operators.Preprocessing.PP_CHANGE_TYPE_SETTINGS, kddml.Operators.Preprocessing.PP_DIVIDING_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_FILTER_ATTRIBUTES_SETTINGS, kddml.Operators.Preprocessing.PP_FOLDING_SETTINGS, kddml.Operators.Preprocessing.PP_HIERARCHICAL_DISCRETIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_MARK_DUPLICATES_SETTINGS, kddml.Operators.Preprocessing.PP_MARKING_SETTINGS, kddml.Operators.Preprocessing.PP_MERGE_DUPLICATES_SETTINGS, kddml.Operators.Preprocessing.PP_NEW_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_NORMALIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_NUMERIC_DISCRETIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS, kddml.Operators.Preprocessing.PP_REMOVE_ROWS_SETTINGS, kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS, kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS, kddml.Operators.Preprocessing.PP_SORTING_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_TABLE_2_TABLE_SETTINGS, kddml.Operators.Preprocessing.TABLE_2_PP_TABLE_SETTINGS, kddml.Operators.Unclassified.EXT_CALL_SETTINGS, kddml.Operators.Unclassified.JDM_CONNECTION_SETTINGS, kddml.Operators.Unclassified.PAR_QUERY_SETTINGS, kddml.Operators.Unclassified.SCALAR_SETTINGS, kddml.Operators.Unclassified.SEQ_QUERY_SETTINGS, and kddml.Operators.Unclassified.TABLE_2_HIERARCHY_SETTINGS. |
|
Returns the type related to a given input attribute. KDDML supports the attribute types as expressed by the class KDDMLScalarType. Returns null if the attribute name do no belong to the list of attributes returned by the method listAttributes().
Implemented in kddml.Operators.AlgorithmLoaderSettings, kddml.Operators.DataMining.TREE_MINER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.ARFF_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.DATABASE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_CLUSTER_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_RDA_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_SEQUENCE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceReader.PMML_TREE_LOADER_SETTINGS, kddml.Operators.IO.ExternalResourceWriter.ARFF_WRITER_SETTINGS, kddml.Operators.IO.ExternalResourceWriter.DATABASE_WRITER_SETTINGS, kddml.Operators.IO.RepositoryResourceReader.RepositoryResourceReaderSettings, kddml.Operators.Postprocessing.CLUSTER_CENTROID_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_NUMBER_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SETTINGS, kddml.Operators.Postprocessing.CLUSTER_PARTITION_SPARROW_SETTINGS, kddml.Operators.Postprocessing.MISCLASSIFIED_SETTINGS, kddml.Operators.Postprocessing.RDA_FILTER_SETTINGS, kddml.Operators.Postprocessing.RDA_PRESERVED_SETTINGS, kddml.Operators.Postprocessing.RDA_SATISFY_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_AGGREGATE_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_MAXIMAL_FILTER_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_RULE_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_SATISFY_SETTINGS, kddml.Operators.Postprocessing.SEQUENCE_TIMESTAMP_FILTER_SETTINGS, kddml.Operators.Postprocessing.TREE_CLASSIFY_SETTINGS, kddml.Operators.Postprocessing.TREE_META_CLASSIFIER_SETTINGS, kddml.Operators.Preprocessing.PP_ADD_HIERARCHY_SETTINGS, kddml.Operators.Preprocessing.PP_CHANGE_TYPE_SETTINGS, kddml.Operators.Preprocessing.PP_DIVIDING_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_FILTER_ATTRIBUTES_SETTINGS, kddml.Operators.Preprocessing.PP_FOLDING_SETTINGS, kddml.Operators.Preprocessing.PP_HIERARCHICAL_DISCRETIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_MARK_DUPLICATES_SETTINGS, kddml.Operators.Preprocessing.PP_MARKING_SETTINGS, kddml.Operators.Preprocessing.PP_NEW_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_NORMALIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_NUMERIC_DISCRETIZATION_SETTINGS, kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS, kddml.Operators.Preprocessing.PP_REMOVE_ROWS_SETTINGS, kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS, kddml.Operators.Preprocessing.PP_REWRITING_SETTINGS, kddml.Operators.Preprocessing.PP_SORTING_ATTRIBUTE_SETTINGS, kddml.Operators.Preprocessing.PP_TABLE_2_TABLE_SETTINGS, kddml.Operators.Preprocessing.TABLE_2_PP_TABLE_SETTINGS, kddml.Operators.Unclassified.EXT_CALL_SETTINGS, kddml.Operators.Unclassified.JDM_CONNECTION_SETTINGS, kddml.Operators.Unclassified.PAR_QUERY_SETTINGS, kddml.Operators.Unclassified.SCALAR_SETTINGS, kddml.Operators.Unclassified.SEQ_QUERY_SETTINGS, and kddml.Operators.Unclassified.TABLE_2_HIERARCHY_SETTINGS. |
|
Checks the correctness correlation between operator attributes. This method depends on the correlation level between the attribute and it is empty for a specific operator if and only if all attributes are independent. As instance, the user and password in the DATABASE_LOADER operator are independent. However, the attributes old_attribute_names and new_attribute_names in the PP_RENAME operator are not independent and they must share the same number of elements. The method can incorporate further controls independent on input attributes, e.g. that some particular events are true when the attribute is applied. By default, this method is empty and it can be ovverides under subclasses.
Reimplemented in kddml.Operators.Postprocessing.SEQUENCE_TIMESTAMP_FILTER_SETTINGS, kddml.Operators.Postprocessing.TREE_META_CLASSIFIER_SETTINGS, and kddml.Operators.Preprocessing.PP_RENAME_ATTRIBUTES_SETTINGS. |
|
Returns the operator name.
|