public class ParameterTypeDouble extends AbstractParameterType<org.djunits.value.vdouble.scalar.Dimensionless>
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 |
|---|
ParameterTypeDouble(String id,
String description)
Constructor without default value.
|
ParameterTypeDouble(String id,
String description,
double defaultValue)
Constructor with default value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
check(double value)
Method to overwrite for checks with constraints.
|
void |
check(double value,
BehavioralCharacteristics bc)
Method to overwrite for checks with constraints.
|
equals, getDefaultValue, getDescription, getId, hashCode, toStringpublic ParameterTypeDouble(String id, String description, double defaultValue)
id - Short name of parameter.description - Parameter description or full name.defaultValue - Default value.public void check(double value)
throws ParameterException
value - Value to check with constraints.ParameterException - If the value does not comply with constraints.public void check(double 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.