|
|
|||||||||||||||||||||
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<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 |
---|
name, shortDescription, value |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
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. |
|
IntParameter(String name,
String description)
Deprecated. |
|
IntParameter(String name,
String description,
List<ParameterConstraint<Number>> constraints)
Deprecated. |
|
IntParameter(String name,
String description,
ParameterConstraint<Number> constraint)
Deprecated. |
|
IntParameter(String name,
String description,
ParameterConstraint<Number> constraint,
Integer defaultValue)
Deprecated. |
|
IntParameter(String name,
String description,
ParameterConstraint<Number> constraint,
Integer defaultValue,
boolean optional)
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 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 value@Deprecated public IntParameter(String name, String description)
name
- the parameter namedescription
- the parameter description@Deprecated public IntParameter(String name, String description, ParameterConstraint<Number> constraint)
name
- the parameter namedescription
- the parameter descriptionconstraint
- the constraint for this integer parameter@Deprecated public IntParameter(String name, String description, ParameterConstraint<Number> constraint, Integer defaultValue)
name
- the parameter namedescription
- the parameter descriptionconstraint
- the constraint for this integer parameterdefaultValue
- the default value@Deprecated public IntParameter(String name, String description, ParameterConstraint<Number> constraint, Integer defaultValue, boolean optional)
name
- the parameter namedescription
- the parameter descriptionconstraint
- the constraint for this integer parameterdefaultValue
- the default valueoptional
- specifies if this parameter is an optional parameter@Deprecated public IntParameter(String name, String description, List<ParameterConstraint<Number>> constraints)
name
- the parameter namedescription
- the parameter descriptionconstraints
- a list of parameter constraints for this integer parameterMethod 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.Option.setValue(String)
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.Option.isValid(java.lang.String)
protected String getParameterType()
getParameterType
in class Parameter<Integer,Number>
Parameter.getParameterType()
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |