Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.application
Class StandAloneApplication

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.application.AbstractApplication
          extended by de.lmu.ifi.dbs.elki.application.StandAloneApplication
All Implemented Interfaces:
Parameterizable
Direct Known Subclasses:
GeneratorXMLSpec, StandAloneInputApplication

public abstract class StandAloneApplication
extends AbstractApplication

StandAloneApplication sets additionally to the flags set by AbstractApplication the output parameter out.

Any Application class that makes use of these flags may extend this class. Beware to make correct use of parameter settings via optionHandler as commented with constructor and methods.

Author:
Elke Achtert

Field Summary
private  File output
          Holds the value of OUTPUT_PARAM.
static OptionID OUTPUT_ID
          OptionID for OUTPUT_PARAM
private  FileParameter OUTPUT_PARAM
          Parameter that specifies the name of the output file.
 
Fields inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
config, INFORMATION, STATIC_LOGGER
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
protected StandAloneApplication(Parameterization config)
          Adds parameter OUTPUT_PARAM to the option handler additionally to parameters of super class.
 
Method Summary
 File getOutput()
          Returns the output string.
abstract  String getOutputDescription()
          Returns the description for the output parameter.
 
Methods inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
isVerbose, printErrorMessage, run, runCLIApplication, usage
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_ID

public static final OptionID OUTPUT_ID
OptionID for OUTPUT_PARAM


OUTPUT_PARAM

private final FileParameter OUTPUT_PARAM
Parameter that specifies the name of the output file.

Key: -app.out


output

private File output
Holds the value of OUTPUT_PARAM.

Constructor Detail

StandAloneApplication

protected StandAloneApplication(Parameterization config)
Adds parameter OUTPUT_PARAM to the option handler additionally to parameters of super class.

Method Detail

getOutput

public final File getOutput()
Returns the output string.

Returns:
the output string

getOutputDescription

public abstract String getOutputDescription()
Returns the description for the output parameter.

Returns:
the description for the output parameter

Release 0.3 (2010-03-31_1612)