Class NumberParameter<P extends NumberParameter<P,T>,T extends java.lang.Number>
- java.lang.Object
-
- elki.utilities.optionhandling.parameters.AbstractParameter<P,T>
-
- elki.utilities.optionhandling.parameters.NumberParameter<P,T>
-
- Type Parameters:
P
- type self-referenceT
- the type of a possible value (i.e., the type of the option)
- All Implemented Interfaces:
Parameter<T>
- Direct Known Subclasses:
DoubleParameter
,IntParameter
,LongParameter
public abstract class NumberParameter<P extends NumberParameter<P,T>,T extends java.lang.Number> extends AbstractParameter<P,T>
Abstract class for defining a number parameter.- Since:
- 0.1
- Author:
- Steffi Wanka, Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.utilities.optionhandling.parameters.AbstractParameter
constraints, defaultValue, givenValue, optionalParameter, optionid
-
-
Constructor Summary
Constructors Constructor Description NumberParameter(OptionID optionID)
Constructs a number parameter with the given optionID.NumberParameter(OptionID optionID, T defaultValue)
Constructs a number parameter with the given optionID and default Value.
-
Method Summary
-
Methods inherited from class elki.utilities.optionhandling.parameters.AbstractParameter
addConstraint, describeValues, getConstraints, getDefaultValue, getDefaultValueAsString, getOptionID, getValue, hasDefaultValue, isDefined, isOptional, isValid, parseValue, setDefaultValue, setOptional, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.utilities.optionhandling.parameters.Parameter
getSyntax, getValueAsString
-
-
-
-
Constructor Detail
-
NumberParameter
public NumberParameter(OptionID optionID, T defaultValue)
Constructs a number parameter with the given optionID and default Value.- Parameters:
optionID
- the unique id of this parameterdefaultValue
- the default value for this parameter
-
NumberParameter
public NumberParameter(OptionID optionID)
Constructs a number parameter with the given optionID.- Parameters:
optionID
- the unique id of this parameter
-
-