de.lmu.ifi.dbs.elki.application
Class AbstractApplication.Parameterizer

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizer
      extended by de.lmu.ifi.dbs.elki.application.AbstractApplication.Parameterizer
All Implemented Interfaces:
Parameterizer
Direct Known Subclasses:
CacheDoubleDistanceInOnDiskMatrix.Parameterizer, CacheFloatDistanceInOnDiskMatrix.Parameterizer, ComputeSingleColorHistogram.Parameterizer, GeneratorXMLSpec.Parameterizer, KDDCLIApplication.Parameterizer, KNNExplorer.Parameterizer
Enclosing class:
AbstractApplication

public abstract static class AbstractApplication.Parameterizer
extends AbstractParameterizer

Parameterization class.


Field Summary
protected  boolean verbose
          Verbose flag
 
Constructor Summary
AbstractApplication.Parameterizer()
           
 
Method Summary
protected  void configVerbose(Parameterization config)
          Get the verbose parameter.
protected  File getParameterInputFile(Parameterization config)
          Get the input file parameter.
protected  File getParameterInputFile(Parameterization config, String description)
          Get the input file parameter
protected  File getParameterOutputFile(Parameterization config)
          Get the output file parameter.
protected  File getParameterOutputFile(Parameterization config, String description)
          Get the output file parameter.
protected abstract  AbstractApplication makeInstance()
          Make an instance after successful configuration.
protected  void makeOptions(Parameterization config)
          Add all options.
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizer
configure, make
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

protected boolean verbose
Verbose flag

Constructor Detail

AbstractApplication.Parameterizer

public AbstractApplication.Parameterizer()
Method Detail

makeOptions

protected void makeOptions(Parameterization config)
Description copied from class: AbstractParameterizer
Add all options. ALWAYS call super.makeOptions(config), unless you have a strong reason to do otherwise!

Overrides:
makeOptions in class AbstractParameterizer
Parameters:
config - Parameterization to add options to.

configVerbose

protected void configVerbose(Parameterization config)
Get the verbose parameter.

Parameters:
config - Parameterization

getParameterOutputFile

protected File getParameterOutputFile(Parameterization config)
Get the output file parameter.

Parameters:
config - Options
Returns:
Output file

getParameterOutputFile

protected File getParameterOutputFile(Parameterization config,
                                      String description)
Get the output file parameter.

Parameters:
config - Options
description - Short description
Returns:
Output file

getParameterInputFile

protected File getParameterInputFile(Parameterization config)
Get the input file parameter.

Parameters:
config - Options
Returns:
Input file

getParameterInputFile

protected File getParameterInputFile(Parameterization config,
                                     String description)
Get the input file parameter

Parameters:
config - Options
description - Description
Returns:
Input file

makeInstance

protected abstract AbstractApplication makeInstance()
Description copied from class: AbstractParameterizer
Make an instance after successful configuration.

Specified by:
makeInstance in class AbstractParameterizer
Returns:
instance

Release 0.4.0 (2011-09-20_1324)