|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.preprocessing.PreprocessorHandler<O,P>
public class PreprocessorHandler<O extends DatabaseObject,P extends Preprocessor<O>>
Handler class for all distance function using a preprocessor.
Field Summary | |
---|---|
private AssociationID |
associationID
The assocoiation ID for the association to be set by the preprocessor |
private Database<O> |
database
The database to run the preprocessor on. |
private boolean |
omit
True, if preprocessing is omitted, false otherwise. |
static String |
OMIT_PREPROCESSING_D
Description for flag for force of preprocessing. |
static String |
OMIT_PREPROCESSING_F
Flag for omission of preprocessing. |
static Flag |
OMIT_PREPROCESSING_FLAG
|
private P |
preprocessor
The preprocessor to run the variance analysis of the objects. |
static String |
PREPROCESSOR_CLASS_P
Parameter for preprocessor. |
private String |
preprocessorClassDescription
The description for the preprocessor class. |
private Class<? extends Preprocessor> |
preprocessorSuperClassName
The super class for the preprocessor class. |
private boolean |
time
Indicates if the time flag is set for preprocessing. |
private boolean |
verbose
Indicates if the verbose flag is set for preprocessing.. |
Constructor Summary | |
---|---|
PreprocessorHandler(OptionHandler optionHandler,
String preprocessorClassDescription,
Class<P> preprocessorSuperClassName,
String defaultPreprocessorClassName,
AssociationID associationID)
Provides a handler class for all distance function using a preprocessor. |
Method Summary | |
---|---|
void |
addAttributeSettings(List<AttributeSettings> settingsList)
Adds the parameter settings of the preprocessor to the specified list. |
P |
getPreprocessor()
Returns the preprocessor of this distance function. |
void |
objectsChanged(DatabaseEvent e)
Invoked after objects of the database have been updated in some way. |
void |
objectsInserted(DatabaseEvent e)
Invoked after an object has been inserted into the database. |
void |
objectsRemoved(DatabaseEvent e)
Invoked after an object has been deleted from the database. |
void |
runPreprocessor(Database<O> database,
boolean verbose,
boolean time)
Runs the preprocessor on the database if the omit flag is not set or the database does contain the association id neither for any id nor as global association. |
String[] |
setParameters(OptionHandler optionHandler,
String[] parameters)
Sets the values for the parameters delta and preprocessor if specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PREPROCESSOR_CLASS_P
public static final String OMIT_PREPROCESSING_F
public static final String OMIT_PREPROCESSING_D
public static final Flag OMIT_PREPROCESSING_FLAG
private boolean omit
private P extends Preprocessor<O> preprocessor
private AssociationID associationID
private Class<? extends Preprocessor> preprocessorSuperClassName
private String preprocessorClassDescription
private boolean verbose
private boolean time
private Database<O extends DatabaseObject> database
Constructor Detail |
---|
public PreprocessorHandler(OptionHandler optionHandler, String preprocessorClassDescription, Class<P> preprocessorSuperClassName, String defaultPreprocessorClassName, AssociationID associationID)
optionHandler
- the option handler for parameter handling.preprocessorClassDescription
- the description for the preprocessor classpreprocessorSuperClassName
- the super class for the preprocessor classdefaultPreprocessorClassName
- the class name for the default preprocessor classassociationID
- the assocoiation ID for the association to be set by the preprocessorMethod Detail |
---|
public String[] setParameters(OptionHandler optionHandler, String[] parameters) throws ParameterException
ParameterException
Parameterizable.setParameters(String[])
public void addAttributeSettings(List<AttributeSettings> settingsList)
settingsList
- the list of parameter settings to add the parameter settings
of the preprocessor topublic void objectsChanged(DatabaseEvent e)
e.getObjects()
to get the updated database objects.
objectsChanged
in interface DatabaseListener
e
- the update eventpublic void objectsInserted(DatabaseEvent e)
e.getObjects()
to get the newly inserted database objects.
objectsInserted
in interface DatabaseListener
e
- the insertion eventpublic void objectsRemoved(DatabaseEvent e)
e.getObjects()
to get the inserted database objects.
objectsRemoved
in interface DatabaseListener
e
- the removal eventpublic P getPreprocessor()
public void runPreprocessor(Database<O> database, boolean verbose, boolean time)
database
- the database to run the preprocessor onverbose
- flag to allow verbose messages while performing the methodtime
- flag to request output of performance time
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |