public class ParameterTypeBoolean extends AbstractParameterType<org.djunits.unit.DimensionlessUnit,org.djunits.value.vdouble.scalar.Dimensionless> implements Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
AbstractParameterType.CheckdefaultValue, valueClass| Constructor and Description |
|---|
ParameterTypeBoolean(String id,
String description)
Constructor without default value.
|
ParameterTypeBoolean(String id,
String description,
boolean defaultValue)
Constructor with default value.
|
ParameterTypeBoolean(String id,
String description,
boolean defaultValue,
boolean hasDefaultValue)
Private constructor with default value, which may check the default value.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getDefaultValue()
Returns the default value.
|
String |
printValue(BehavioralCharacteristics behavioralCharacteristics)
Print the given value from the map in BehavioralCharachteristics in a presentable format.
|
String |
toString() |
checkCheck, equals, getDescription, getId, hasDefaultValue, hashCodepublic ParameterTypeBoolean(String id, String description)
id - Short name of parameter.description - Parameter description or full name.public ParameterTypeBoolean(String id, String description, boolean defaultValue)
id - Short name of parameter.description - Parameter description or full name.defaultValue - Default value.public ParameterTypeBoolean(String id, String description, boolean defaultValue, boolean hasDefaultValue)
id - Short name of parameter.description - Parameter description or full name.defaultValue - Default value.hasDefaultValue - Whether to check the default value for null.public final Boolean getDefaultValue() throws ParameterException
getDefaultValue in class AbstractParameterType<org.djunits.unit.DimensionlessUnit,org.djunits.value.vdouble.scalar.Dimensionless>ParameterException - If no default value was set.public final String printValue(BehavioralCharacteristics behavioralCharacteristics) throws ParameterException
printValue in class AbstractParameterType<org.djunits.unit.DimensionlessUnit,org.djunits.value.vdouble.scalar.Dimensionless>behavioralCharacteristics - Behavioral characteristics to get the value from.ParameterException - If the parameter is not present.public String toString()
toString in class AbstractParameterType<org.djunits.unit.DimensionlessUnit,org.djunits.value.vdouble.scalar.Dimensionless>Copyright © 2014–2016 Delft University of Technology. All rights reserved.