|
|
|||||||||||||||||||||
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<Integer>
de.lmu.ifi.dbs.elki.utilities.optionhandling.IntParameter
public class IntParameter
Parameter class for a parameter specifying an integer 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 | |
---|---|
IntParameter(OptionID optionID)
Constructs an integer parameter with the given optionID. |
|
IntParameter(OptionID optionID,
ParameterConstraint<Number> constraint)
Constructs an integer parameter with the given optionID, and parameter constraint. |
|
IntParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
boolean optional)
Constructs an integer parameter with the given optionID, parameter constraint, and optional flag. |
|
IntParameter(OptionID optionID,
ParameterConstraint<Number> constraint,
Integer defaultValue)
Constructs an integer 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 IntParameter(OptionID optionID)
optionID
- optionID the unique id of the optionpublic IntParameter(OptionID optionID, ParameterConstraint<Number> constraint)
optionID
- optionID the unique id of the optionconstraint
- the constraint for this integer parameterpublic IntParameter(OptionID optionID, ParameterConstraint<Number> constraint, boolean optional)
optionID
- optionID the unique id of the optionconstraint
- the constraint for this integer parameteroptional
- specifies if this parameter is an optional parameterpublic IntParameter(OptionID optionID, ParameterConstraint<Number> constraint, Integer defaultValue)
optionID
- optionID the unique id of the optionconstraint
- the constraint for this integer parameterdefaultValue
- the default valueMethod Detail |
---|
public void setValue(String value) throws ParameterException
Option
setValue
in class Option<Integer>
value
- the option's value to be set
ParameterException
- if the given value is not a valid value for this option.public boolean isValid(String value) throws ParameterException
Option
isValid
in class Option<Integer>
value
- option value to be checked
ParameterException
- if the given value is not a valid value for this option.public String getSyntax()
getSyntax
in class Option<Integer>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |