T - Class of the value.public class ParameterType<T extends org.djunits.value.vdouble.scalar.DoubleScalar.Rel<?>> extends AbstractParameterType<T>
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
valueClass| Constructor and Description |
|---|
ParameterType(String id,
String description,
Class<T> valueClass)
Constructor without default value.
|
ParameterType(String id,
String description,
Class<T> valueClass,
T defaultValue)
Constructor with default value.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(T value)
Method to overwrite for checks with constraints.
|
protected void |
check(T value,
BehavioralCharacteristics bc)
Method to overwrite for checks with constraints.
|
Class<T> |
getValueClass()
Returns the class of the value.
|
equals, getDefaultValue, getDescription, getId, hashCode, toStringpublic ParameterType(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.public final Class<T> getValueClass()
protected void check(T value) throws ParameterException
value - Value to check with constraints.ParameterException - If the value does not comply with constraints.protected void check(T value, BehavioralCharacteristics bc) throws ParameterException
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.