Package elki.application
Class AbstractApplication.Par
- java.lang.Object
-
- elki.application.AbstractApplication.Par
-
- All Implemented Interfaces:
Parameterizer
- Direct Known Subclasses:
CacheDoubleDistanceInOnDiskMatrix.Par,CacheDoubleDistanceKNNLists.Par,CacheDoubleDistanceRangeQueries.Par,CacheFloatDistanceInOnDiskMatrix.Par,ClassifierHoldoutEvaluationTask.Par,ComputeKNNOutlierScores.Par,ConvertToBundleApplication.Par,EvaluateIntrinsicDimensionalityEstimators.Par,EvaluatePrecomputedOutlierScores.Par,GeneratorXMLSpec.Par,GreedyEnsembleExperiment.Par,KDDCLIApplication.Par,ORLibBenchmark.Par,PrecomputeDistancesAsciiApplication.Par,VisualizeGeodesicDistances.Par,VisualizePairwiseGainMatrix.Par
- Enclosing class:
- AbstractApplication
public abstract static class AbstractApplication.Par extends java.lang.Object implements Parameterizer
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static OptionIDDATABASE_IDOption ID to specify the database typestatic OptionIDDEBUG_IDOptional Parameter to specify a class to enable debugging for.static OptionIDDESCRIPTION_IDOptional Parameter to specify a class to obtain a description for.static OptionIDHELP_IDFlag to obtain help-message.static OptionIDHELP_LONG_IDFlag to obtain help-message.static OptionIDINPUT_IDParameter that specifies the name of the input file.static OptionIDOUTPUT_IDParameter that specifies the name of the output file.static OptionIDVERBOSE_IDFlag to allow verbose messages while running the application.
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static voidapplyLoggingLevels(java.lang.String[][] levels)Apply the logging levels.protected java.net.URIgetParameterInputFile(Parameterization config)Get the input file parameter.protected java.net.URIgetParameterInputFile(Parameterization config, java.lang.String description)Get the input file parameterprotected java.nio.file.PathgetParameterOutputFile(Parameterization config)Get the output file parameter.protected java.nio.file.PathgetParameterOutputFile(Parameterization config, java.lang.String description)Get the output file parameter.abstract AbstractApplicationmake()Make an instance after successful configuration.static java.lang.String[][]parseDebugParameter(Parameterization config)Parse the standard -debug parameter.static java.util.logging.LevelparseVerbose(Parameterization config)Parse the standard -verbose options.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.utilities.optionhandling.Parameterizer
configure
-
-
-
-
Field Detail
-
OUTPUT_ID
public static final OptionID OUTPUT_ID
Parameter that specifies the name of the output file.
-
INPUT_ID
public static final OptionID INPUT_ID
Parameter that specifies the name of the input file.
-
DATABASE_ID
public static final OptionID DATABASE_ID
Option ID to specify the database type
-
HELP_ID
public static final OptionID HELP_ID
Flag to obtain help-message.
-
HELP_LONG_ID
public static final OptionID HELP_LONG_ID
Flag to obtain help-message.
-
DESCRIPTION_ID
public static final OptionID DESCRIPTION_ID
Optional Parameter to specify a class to obtain a description for.
-
DEBUG_ID
public static final OptionID DEBUG_ID
Optional Parameter to specify a class to enable debugging for.
-
VERBOSE_ID
public static final OptionID VERBOSE_ID
Flag to allow verbose messages while running the application.
-
-
Method Detail
-
parseVerbose
public static java.util.logging.Level parseVerbose(Parameterization config)
Parse the standard -verbose options.- Parameters:
config- Parameterization
-
parseDebugParameter
public static java.lang.String[][] parseDebugParameter(Parameterization config)
Parse the standard -debug parameter.- Parameters:
config- Parameterization- Returns:
- Levels to set, or
null
-
applyLoggingLevels
public static void applyLoggingLevels(java.lang.String[][] levels)
Apply the logging levels.- Parameters:
levels- Logging levels, may be null.
-
getParameterOutputFile
protected java.nio.file.Path getParameterOutputFile(Parameterization config)
Get the output file parameter.- Parameters:
config- Options- Returns:
- Output file
-
getParameterOutputFile
protected java.nio.file.Path getParameterOutputFile(Parameterization config, java.lang.String description)
Get the output file parameter.- Parameters:
config- Optionsdescription- Short description- Returns:
- Output file
-
getParameterInputFile
protected java.net.URI getParameterInputFile(Parameterization config)
Get the input file parameter.- Parameters:
config- Options- Returns:
- Input file
-
getParameterInputFile
protected java.net.URI getParameterInputFile(Parameterization config, java.lang.String description)
Get the input file parameter- Parameters:
config- Optionsdescription- Description- Returns:
- Input file
-
make
public abstract AbstractApplication make()
Description copied from interface:ParameterizerMake an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Objectas return type.- Specified by:
makein interfaceParameterizer- Returns:
- a new instance
-
-