public class ParameterTypeBoolean extends ParameterType<Boolean> implements Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
defaultValue| Constructor and Description |
|---|
ParameterTypeBoolean(String id,
String description)
Construct a new ParameterTypeBoolean without default value.
|
ParameterTypeBoolean(String id,
String description,
boolean defaultValue)
Construct a new ParameterTypeBoolean with default value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
toString() |
check, checkConstraint, equals, getConstraint, getDefaultValue, getDescription, getId, getValueClass, hasDefaultValue, hashCodepublic ParameterTypeBoolean(String id, String description)
id - String; short name of the new ParameterTypeBooleandescription - String; parameter description or full name of the new ParameterTypeBooleanpublic ParameterTypeBoolean(String id, String description, boolean defaultValue)
id - String; short name of the new ParameterTypeBooleandescription - String; parameter description or full name of the new ParameterTypeBooleandefaultValue - boolean; the default value of the new ParameterTypeBooleanpublic final String printValue(Parameters parameters) throws ParameterException
printValue in class ParameterType<Boolean>parameters - Parameters to get the value fromParameterException - If the parameter is not presentpublic String toString()
toString in class ParameterType<Boolean>Copyright © 2014–2018 Delft University of Technology. All rights reserved.