public final class OptionID extends Object
Modifier and Type | Field and Description |
---|---|
static OptionID |
ALGORITHM
OptionID for
AlgorithmStep |
static OptionID |
DATABASE
OptionID for
InputStep |
static OptionID |
DATABASE_CONNECTION
OptionID for
InputStep |
static OptionID |
DEBUG
Optional Parameter to specify a class to enable debugging for.
|
private String |
description
The description of the OptionID.
|
static OptionID |
DESCRIPTION
Optional Parameter to specify a class to obtain a description for.
|
static OptionID |
EVALUATOR
OptionID for
EvaluationStep |
static OptionID |
HELP
Flag to obtain help-message.
|
static OptionID |
HELP_LONG
Flag to obtain help-message.
|
private String |
name
Option name
|
static OptionID |
OUTPUT
OptionID for the application output file/folder
|
static OptionID |
RESULT_HANDLER
OptionID for
OutputStep |
static OptionID |
TIME_FLAG
Flag to allow verbose messages while running the application.
|
static OptionID |
VERBOSE_FLAG
Flag to allow verbose messages while running the application.
|
Constructor and Description |
---|
OptionID(String name,
String description)
Provides a new OptionID of the given name and description.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description of this OptionID.
|
String |
getName()
Get the option name.
|
static OptionID |
getOrCreateOptionID(String name,
String description)
Gets or creates the OptionID for the given class and given name.
|
String |
toString()
Returns the name of this OptionID.
|
public static final OptionID HELP
Key: -h
public static final OptionID HELP_LONG
Key: -help
public static final OptionID ALGORITHM
AlgorithmStep
public static final OptionID DESCRIPTION
Key: -description
public static final OptionID DEBUG
Key: -enableDebug
public static final OptionID EVALUATOR
EvaluationStep
public static final OptionID RESULT_HANDLER
OutputStep
public static final OptionID OUTPUT
public static final OptionID VERBOSE_FLAG
Key: -verbose
public static final OptionID TIME_FLAG
Key: -time
private String name
private String description
public OptionID(String name, String description)
name
- the name of the optiondescription
- the description of the optionpublic String getDescription()
public static OptionID getOrCreateOptionID(String name, String description)
epsilon
for the class
DBSCAN
will be named
dbscan.epsilon
.name
- the namedescription
- the description is also set if the named OptionID does
exist alreadypublic String toString()
toString
in class Object
Object.toString()
public String getName()