Package | Description |
---|---|
org.opentrafficsim.base.parameters |
Simulation parameters.
|
org.opentrafficsim.base.parameters.constraint |
Constraints of parameters.
|
Modifier and Type | Method and Description |
---|---|
Constraint<? super T> |
ParameterType.getConstraint()
Retrieve the constraint.
|
Constructor and Description |
---|
ParameterType(String id,
String description,
Class<T> valueClass,
Constraint<? super T> constraint)
Construct a new AbstractParameterType without default value and with constraint.
|
ParameterType(String id,
String description,
Class<T> valueClass,
T defaultValue,
Constraint<? super T> constraint)
Construct a new AbstractParameterType with default value and constraint.
|
ParameterTypeAcceleration(String id,
String description,
Acceleration defaultValue,
Constraint<? super Acceleration> constraint)
Construct a new ParameterTypeAcceleration with default value and check.
|
ParameterTypeAcceleration(String id,
String description,
Constraint<? super Acceleration> constraint)
Construct a new ParameterTypeAcceleration without default value, with check.
|
ParameterTypeClass(String id,
String description,
Class<Class<? extends T>> valueClass,
Class<? extends T> defaultValue,
Constraint<? super Class<? extends T>> constraint)
Constructor with default value and check.
|
ParameterTypeClass(String id,
String description,
Class<Class<? extends T>> valueClass,
Constraint<? super Class<? extends T>> constraint)
Constructor without default value, with check.
|
ParameterTypeClassList(String id,
String description,
Class<List<Class<? extends T>>> valueClass,
Constraint<? super List<Class<? extends T>>> constraint)
Constructor without default value, with check.
|
ParameterTypeClassList(String id,
String description,
Class<List<Class<? extends T>>> valueClass,
List<Class<? extends T>> defaultValue,
Constraint<? super List<Class<? extends T>>> constraint)
Constructor with default value and check.
|
ParameterTypeDouble(String id,
String description,
Constraint<? super Double> constraint)
Construct a new ParameterTypeDouble without default value, with check.
|
ParameterTypeDouble(String id,
String description,
double defaultValue,
Constraint<? super Double> constraint)
Construct a new ParameterTypeDouble with default value and check.
|
ParameterTypeDouble(String id,
String description,
Double defaultValue,
Constraint<Number> constraint)
Construct a new ParameterTypeDouble with default value and check.
|
ParameterTypeDuration(String id,
String description,
Constraint<? super Duration> constraint)
Construct a new ParameterTypeDuration without default value, with check.
|
ParameterTypeDuration(String id,
String description,
Duration defaultValue,
Constraint<? super Duration> constraint)
Construct a new ParameterTypeDuration with default value and check.
|
ParameterTypeFrequency(String id,
String description,
Constraint<? super Frequency> constraint)
Construct a new ParameterTypeFrequency without default value, with check.
|
ParameterTypeFrequency(String id,
String description,
Frequency defaultValue,
Constraint<? super Frequency> constraint)
Construct a new ParameterTypeFrequency with default value and check.
|
ParameterTypeInteger(String id,
String description,
Constraint<? super Integer> constraint)
Construct a new ParameterTypeInteger without default value, with check.
|
ParameterTypeInteger(String id,
String description,
int defaultValue,
Constraint<? super Integer> constraint)
Construct a new ParameterTypeInteger with default value and check.
|
ParameterTypeInteger(String id,
String description,
Integer defaultValue,
Constraint<Number> constraint)
Construct a new ParameterTypeInteger with default value and check.
|
ParameterTypeLength(String id,
String description,
Constraint<? super Length> constraint)
Construct a new ParameterTypeLength without default value, with check.
|
ParameterTypeLength(String id,
String description,
Length defaultValue,
Constraint<? super Length> constraint)
Construct a new ParameterTypeLength with default value and check.
|
ParameterTypeLinearDensity(String id,
String description,
Constraint<? super LinearDensity> constraint)
Construct a new ParameterTypeLinearDensity without default value, with check.
|
ParameterTypeLinearDensity(String id,
String description,
LinearDensity defaultValue,
Constraint<? super LinearDensity> constraint)
Construct a new ParameterTypeLinearDensity with default value and check.
|
ParameterTypeNumeric(String id,
String description,
Class<T> valueClass,
Constraint<? super T> constraint)
Constructor without default value, with check.
|
ParameterTypeNumeric(String id,
String description,
Class<T> valueClass,
T defaultValue,
Constraint<? super T> constraint)
Constructor with default value and check.
|
ParameterTypeSpeed(String id,
String description,
Constraint<? super Speed> constraint)
Constructor a new ParameterTypeSpeed without default value, with check.
|
ParameterTypeSpeed(String id,
String description,
Speed defaultValue,
Constraint<? super Speed> constraint)
Constructor a new ParameterTypeSpeed with default value and check.
|
ParameterTypeString(String id,
String description,
Constraint<? super String> constraint) |
ParameterTypeString(String id,
String description,
String defaultValue,
Constraint<? super String> constraint) |
Modifier and Type | Class and Description |
---|---|
class |
ClassCollectionConstraint<T>
Constraint that checks whether a collection of classes is a sub collection of constraint collection.
|
class |
ClassConstraint<T>
Constraint that checks whether the value is any of a given collection of classes, where each class is a sub class of a given
type.
|
class |
CollectionConstraint<T>
Constraint that checks whether a value is in a given constraint collection.
|
class |
DualBound<T extends Number>
Continuous constraints with a dual bound.
|
class |
MultiConstraint<T>
Constraint containing multiple constraints.
|
class |
NumericConstraint
List of default constraint for ParameterTypes.
|
class |
SingleBound<T extends Number>
Continuous constraints with a single bound.
|
class |
SubCollectionConstraint<T>
Constraint that checks whether a collection (the parameter value) is a subset of a constraint collection.
|
Modifier and Type | Field and Description |
---|---|
static Constraint<Number> |
ConstraintInterface.ATLEASTONE |
static Constraint<Number> |
ConstraintInterface.NEGATIVE |
static Constraint<Number> |
ConstraintInterface.NEGATIVEZERO |
static Constraint<Number> |
ConstraintInterface.NONZERO |
static Constraint<Number> |
ConstraintInterface.POSITIVE |
static Constraint<Number> |
ConstraintInterface.POSITIVEZERO |
static Constraint<Number> |
ConstraintInterface.UNITINTERVAL |
Modifier and Type | Method and Description |
---|---|
static <T> MultiConstraint<T> |
MultiConstraint.create(Constraint<T>... constraints)
Creates a
MultiConstraint from given constraints. |
Constructor and Description |
---|
MultiConstraint(Set<Constraint<T>> constraints)
Constructor.
|
Copyright © 2014–2019 Delft University of Technology. All rights reserved.