|
|
|||||||||||||||||||||
| 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.parameters.Parameter<Number,T>
de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.NumberParameter<Integer>
de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.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.parameters.Parameter |
|---|
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription |
| Constructor Summary | |
|---|---|
IntParameter(OptionID optionID)
Constructs an integer parameter with the given optionID. |
|
IntParameter(OptionID optionID,
boolean optional)
Constructs an integer parameter with the given optionID. |
|
IntParameter(OptionID optionID,
Integer defaultValue)
Constructs an integer parameter with the given optionID. |
|
IntParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints)
Constructs an integer parameter with the given optionID, and parameter constraint. |
|
IntParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints,
boolean optional)
Constructs an integer parameter with the given optionID, parameter constraint, and optional flag. |
|
IntParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints,
Integer defaultValue)
Constructs an integer parameter with the given optionID, parameter constraint, and default value. |
|
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. |
String |
getValueAsString()
Get the value as string. |
protected Integer |
parseValue(Object obj)
Parse a given value into the destination type. |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter |
|---|
getDefaultValue, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints,
Integer defaultValue)
optionID - optionID the unique id of the optionconstraints - the constraint for this integer parameterdefaultValue - the default value
public IntParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints,
boolean optional)
optionID - optionID the unique id of the optionconstraints - the constraint for this integer parameteroptional - specifies if this parameter is an optional parameter
public IntParameter(OptionID optionID,
List<ParameterConstraint<Number>> constraints)
optionID - optionID the unique id of the optionconstraints - the constraint for this integer parameter
public 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
public 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 parameter
public IntParameter(OptionID optionID,
ParameterConstraint<Number> constraint)
optionID - optionID the unique id of the optionconstraint - the constraint for this integer parameter
public IntParameter(OptionID optionID,
Integer defaultValue)
optionID - optionID the unique id of the optiondefaultValue - the default value
public IntParameter(OptionID optionID,
boolean optional)
optionID - optionID the unique id of the optionoptional - specifies if this parameter is an optional parameterpublic IntParameter(OptionID optionID)
optionID - optionID the unique id of the option| Method Detail |
|---|
public String getValueAsString()
null
getValueAsString in class Parameter<Number,Integer>
protected Integer parseValue(Object obj)
throws ParameterException
parseValue in class Parameter<Number,Integer>obj - Object to parse (may be a string representation!)
ParameterException - when the object cannot be parsed.public String getSyntax()
getSyntax in class Parameter<Number,Integer>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||