|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.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 |
|---|
optionid, shortDescription, value |
| Constructor Summary | |
|---|---|
LongParameter(OptionID optionID)
Constructs a long parameter with the given optionID. |
|
LongParameter(OptionID optionID,
boolean optional,
long defaultValue)
Constructs a long parameter with the given optionID, parameter constraint and default value. |
|
LongParameter(OptionID optionID,
ParameterConstraint<Number> constraint)
Constructs a long parameter with the given optionID, and parameter constraint. |
|
LongParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
long defaultValue)
Constructs a long parameter with the given optionID, parameter constraint and default value. |
|
| Method Summary | |
|---|---|
String |
getSyntax()
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, getFullDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isOptional, isSet, reset, setDefaultValue, setDefaultValueToValue, setOptional, tookDefaultValue |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.Option |
|---|
getName, getOptionID, getShortDescription, setShortDescription |
| 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> constraint)
optionID - the unique OptionID for this parameterconstraint - the parameter constraint for this long parameter
public LongParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
long defaultValue)
optionID - the unique OptionID for this parameterconstraint - the parameter constraint for this long parameterdefaultValue - the default value
public LongParameter(OptionID optionID,
boolean optional,
long defaultValue)
optionID - the unique OptionID for this parameteroptional - specifies if this parameter is an optional parameterdefaultValue - the default value| 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.
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.public String getSyntax()
getSyntax in class Option<Long>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||