T - The parameter typepublic class ParameterTypePositive<T extends org.djunits.value.vdouble.scalar.DoubleScalar.Rel<?>> extends ParameterType<T>
valueClass| Constructor and Description |
|---|
ParameterTypePositive(String id,
String description,
Class<T> valueClass)
Constructor without default value.
|
ParameterTypePositive(String id,
String description,
Class<T> valueClass,
T defaultValue)
Constructor with default value.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(T value)
Check if value is positive and non-zero.
|
protected void |
check(T value,
BehavioralCharacteristics bc)
Check if value is positive and non-zero.
|
getValueClassequals, getDefaultValue, getDescription, getId, hashCode, toStringpublic ParameterTypePositive(String id, String description, Class<T> valueClass, T defaultValue)
id - Short name of parameter.description - Parameter description or full name.valueClass - Class of the value.defaultValue - Default value.protected void check(T value) throws ParameterException
check in class ParameterType<T extends org.djunits.value.vdouble.scalar.DoubleScalar.Rel<?>>value - Value to check with constraints.ParameterException - If the value does not comply with constraints.protected void check(T value, BehavioralCharacteristics bc) throws ParameterException
check in class ParameterType<T extends org.djunits.value.vdouble.scalar.DoubleScalar.Rel<?>>value - Value to check with constraints.bc - Set of behavioral characteristics.ParameterException - If the value does not comply with constraints.Copyright © 2014–2016 Delft University of Technology. All rights reserved.