|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.Option<T>
de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter<T,Number>
de.lmu.ifi.dbs.elki.utilities.optionhandling.NumberParameter<Long>
de.lmu.ifi.dbs.elki.utilities.optionhandling.LongParameter
public class LongParameter
Parameter class for a parameter specifying a long value.
| Field Summary |
|---|
| Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
|---|
constraints, defaultValue, optionalParameter |
| Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
|---|
name, shortDescription, value |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug |
| Constructor Summary | |
|---|---|
LongParameter(OptionID optionID)
Constructs a long parameter with the given optionID. |
|
LongParameter(OptionID optionID,
List<ParameterConstraint<Number>> cons)
Constructs a long parameter with the given optionID, and parameter constraints. |
|
LongParameter(OptionID optionID,
ParameterConstraint<Number> cons)
Constructs a long parameter with the given optionID, and parameter constraint. |
|
LongParameter(String name,
String description)
Deprecated. |
|
LongParameter(String name,
String description,
List<ParameterConstraint<Number>> cons)
Deprecated. |
|
LongParameter(String name,
String description,
ParameterConstraint<Number> cons)
Deprecated. |
|
| Method Summary | |
|---|---|
protected String |
getParameterType()
Returns a string representation of the parameter's type. |
boolean |
isValid(String value)
Checks if the given argument is valid for this option. |
void |
setValue(String value)
Sets the value of the option. |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.NumberParameter |
|---|
getNumberValue |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameter |
|---|
addConstraint, addConstraintList, getDefaultValue, getDescription, getValue, hasDefaultValue, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
|---|
getName, getShortDescription, setShortDescription |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongParameter(OptionID optionID)
optionID - the unique OptionID for this parameter
public LongParameter(OptionID optionID,
ParameterConstraint<Number> cons)
optionID - the unique OptionID for this parametercons - the parameter constraint for this long parameter
public LongParameter(OptionID optionID,
List<ParameterConstraint<Number>> cons)
optionID - the unique OptionID for this parametercons - a list of parameter constraints for this long parameter
@Deprecated
public LongParameter(String name,
String description)
name - the parameter namedescription - the parameter description
@Deprecated
public LongParameter(String name,
String description,
ParameterConstraint<Number> cons)
name - the parameter namedescription - the parameter descriptioncons - the parameter constraint for this long parameter
@Deprecated
public LongParameter(String name,
String description,
List<ParameterConstraint<Number>> cons)
name - the parameter namedescription - the parameter descriptioncons - a list of parameter constraints for this long parameter| Method Detail |
|---|
public boolean isValid(String value)
throws ParameterException
Option
isValid in class Option<Long>value - option value to be checked
ParameterException - if the given value is not a valid value for this option.Option.isValid(java.lang.String)
public void setValue(String value)
throws ParameterException
Option
setValue in class Option<Long>value - the option's value to be set
ParameterException - if the given value is not a valid value for this option.Option.setValue(java.lang.String)protected String getParameterType()
getParameterType in class Parameter<Long,Number>Parameter.getParameterType()
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||