Package | Description |
---|---|
org.opentrafficsim.base.modelproperties |
Model properties to initialize models.
|
org.opentrafficsim.base.parameters |
Simulation parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
PickList.addItem(PickListItem<T> item)
Add one item to this PickList.
|
String |
PickList.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
Constructor and Description |
---|
PickList(String id,
String description,
List<PickListItem<T>> items)
Construct a new PickList and fill it with the provided items.
|
PickList(String id,
String description,
PickListItem<T> firstItem,
PickListItem<T>... additionalItems)
Construct a new PickList and fill it with the provided items.
|
Modifier and Type | Method and Description |
---|---|
void |
ParameterTypeInteger.check(int value,
Parameters params)
Method to overwrite for checks with constraints.
|
void |
ParameterType.check(T value,
Parameters params)
Default implementation of check method.
|
void |
ParameterType.checkConstraint(T value)
Check that a value complies with the constraint of this AbstractParameterType.
|
T |
ParameterType.getDefaultValue()
Retrieve the the default value of this AbstractParameterType.
|
<T> T |
ParameterSet.getParameter(ParameterType<T> parameterType)
Get parameter of given type.
|
<T> T |
Parameters.getParameter(ParameterType<T> parameterType)
Get parameter of given type.
|
String |
ParameterTypeString.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
ParameterTypeNumeric.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
ParameterTypeInteger.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
ParameterTypeDouble.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
ParameterTypeClassList.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
ParameterTypeClass.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
ParameterTypeBoolean.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
ParameterType.printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
void |
ParameterSet.resetParameter(ParameterType<?> parameterType)
Resets the parameter value to the value from before the last set.
|
void |
Parameters.resetParameter(ParameterType<?> parameterType)
Resets the parameter value to the value from before the last set.
|
<T> ParameterSet |
ParameterSet.setDefaultParameter(ParameterType<T> parameter)
Sets the default value of a parameter.
|
<T> void |
ParameterSet.setParameter(ParameterType<T> parameterType,
T value)
Set parameter value of given parameter type.
|
<T> void |
Parameters.setParameter(ParameterType<T> parameterType,
T value)
Set parameter value of given parameter type.
|
<T> void |
ParameterSet.setParameterResettable(ParameterType<T> parameterType,
T value)
Set parameter value of given parameter type, store old value to allow a reset.
|
<T> void |
Parameters.setParameterResettable(ParameterType<T> parameterType,
T value)
Set parameter value of given parameter type, store old value to allow a reset.
|
Copyright © 2014–2018 Delft University of Technology. All rights reserved.