Uses of Interface
org.opentrafficsim.base.parameters.constraint.Constraint
Package | Description |
---|---|
org.opentrafficsim.base.parameters |
Simulation parameters.
|
org.opentrafficsim.base.parameters.constraint |
Constraints of parameters.
|
-
Uses of Constraint in org.opentrafficsim.base.parameters
Methods in org.opentrafficsim.base.parameters that return Constraint Modifier and Type Method Description Constraint<? super T>
ParameterType. getConstraint()
Retrieve the constraint.Constructors in org.opentrafficsim.base.parameters with parameters of type Constraint Constructor Description ParameterType(java.lang.String id, java.lang.String description, java.lang.Class<T> valueClass, Constraint<? super T> constraint)
Construct a new AbstractParameterType without default value and with constraint.ParameterType(java.lang.String id, java.lang.String description, java.lang.Class<T> valueClass, T defaultValue, Constraint<? super T> constraint)
Construct a new AbstractParameterType with default value and constraint.ParameterTypeAcceleration(java.lang.String id, java.lang.String description, Acceleration defaultValue, Constraint<? super Acceleration> constraint)
Construct a new ParameterTypeAcceleration with default value and check.ParameterTypeAcceleration(java.lang.String id, java.lang.String description, Constraint<? super Acceleration> constraint)
Construct a new ParameterTypeAcceleration without default value, with check.ParameterTypeClass(java.lang.String id, java.lang.String description, java.lang.Class<java.lang.Class<? extends T>> valueClass, java.lang.Class<? extends T> defaultValue, Constraint<? super java.lang.Class<? extends T>> constraint)
Constructor with default value and check.ParameterTypeClass(java.lang.String id, java.lang.String description, java.lang.Class<java.lang.Class<? extends T>> valueClass, Constraint<? super java.lang.Class<? extends T>> constraint)
Constructor without default value, with check.ParameterTypeClassList(java.lang.String id, java.lang.String description, java.lang.Class<java.util.List<java.lang.Class<? extends T>>> valueClass, java.util.List<java.lang.Class<? extends T>> defaultValue, Constraint<? super java.util.List<java.lang.Class<? extends T>>> constraint)
Constructor with default value and check.ParameterTypeClassList(java.lang.String id, java.lang.String description, java.lang.Class<java.util.List<java.lang.Class<? extends T>>> valueClass, Constraint<? super java.util.List<java.lang.Class<? extends T>>> constraint)
Constructor without default value, with check.ParameterTypeDouble(java.lang.String id, java.lang.String description, double defaultValue, Constraint<? super java.lang.Double> constraint)
Construct a new ParameterTypeDouble with default value and check.ParameterTypeDouble(java.lang.String id, java.lang.String description, java.lang.Double defaultValue, Constraint<java.lang.Number> constraint)
Construct a new ParameterTypeDouble with default value and check.ParameterTypeDouble(java.lang.String id, java.lang.String description, Constraint<? super java.lang.Double> constraint)
Construct a new ParameterTypeDouble without default value, with check.ParameterTypeDuration(java.lang.String id, java.lang.String description, Duration defaultValue, Constraint<? super Duration> constraint)
Construct a new ParameterTypeDuration with default value and check.ParameterTypeDuration(java.lang.String id, java.lang.String description, Constraint<? super Duration> constraint)
Construct a new ParameterTypeDuration without default value, with check.ParameterTypeFrequency(java.lang.String id, java.lang.String description, Frequency defaultValue, Constraint<? super Frequency> constraint)
Construct a new ParameterTypeFrequency with default value and check.ParameterTypeFrequency(java.lang.String id, java.lang.String description, Constraint<? super Frequency> constraint)
Construct a new ParameterTypeFrequency without default value, with check.ParameterTypeInteger(java.lang.String id, java.lang.String description, int defaultValue, Constraint<? super java.lang.Integer> constraint)
Construct a new ParameterTypeInteger with default value and check.ParameterTypeInteger(java.lang.String id, java.lang.String description, java.lang.Integer defaultValue, Constraint<java.lang.Number> constraint)
Construct a new ParameterTypeInteger with default value and check.ParameterTypeInteger(java.lang.String id, java.lang.String description, Constraint<? super java.lang.Integer> constraint)
Construct a new ParameterTypeInteger without default value, with check.ParameterTypeLength(java.lang.String id, java.lang.String description, Length defaultValue, Constraint<? super Length> constraint)
Construct a new ParameterTypeLength with default value and check.ParameterTypeLength(java.lang.String id, java.lang.String description, Constraint<? super Length> constraint)
Construct a new ParameterTypeLength without default value, with check.ParameterTypeLinearDensity(java.lang.String id, java.lang.String description, LinearDensity defaultValue, Constraint<? super LinearDensity> constraint)
Construct a new ParameterTypeLinearDensity with default value and check.ParameterTypeLinearDensity(java.lang.String id, java.lang.String description, Constraint<? super LinearDensity> constraint)
Construct a new ParameterTypeLinearDensity without default value, with check.ParameterTypeNumeric(java.lang.String id, java.lang.String description, java.lang.Class<T> valueClass, Constraint<? super T> constraint)
Constructor without default value, with check.ParameterTypeNumeric(java.lang.String id, java.lang.String description, java.lang.Class<T> valueClass, T defaultValue, Constraint<? super T> constraint)
Constructor with default value and check.ParameterTypeSpeed(java.lang.String id, java.lang.String description, Speed defaultValue, Constraint<? super Speed> constraint)
Constructor a new ParameterTypeSpeed with default value and check.ParameterTypeSpeed(java.lang.String id, java.lang.String description, Constraint<? super Speed> constraint)
Constructor a new ParameterTypeSpeed without default value, with check.ParameterTypeString(java.lang.String id, java.lang.String description, java.lang.String defaultValue, Constraint<? super java.lang.String> constraint)
ParameterTypeString(java.lang.String id, java.lang.String description, Constraint<? super java.lang.String> constraint)
-
Uses of Constraint in org.opentrafficsim.base.parameters.constraint
Classes in org.opentrafficsim.base.parameters.constraint that implement Constraint Modifier and Type Class 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 java.lang.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 java.lang.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.Fields in org.opentrafficsim.base.parameters.constraint declared as Constraint Modifier and Type Field Description static Constraint<java.lang.Number>
ConstraintInterface. ATLEASTONE
static Constraint<java.lang.Number>
ConstraintInterface. NEGATIVE
static Constraint<java.lang.Number>
ConstraintInterface. NEGATIVEZERO
static Constraint<java.lang.Number>
ConstraintInterface. NONZERO
static Constraint<java.lang.Number>
ConstraintInterface. POSITIVE
static Constraint<java.lang.Number>
ConstraintInterface. POSITIVEZERO
static Constraint<java.lang.Number>
ConstraintInterface. UNITINTERVAL
Methods in org.opentrafficsim.base.parameters.constraint with parameters of type Constraint Modifier and Type Method Description static <T> MultiConstraint<T>
MultiConstraint. create(Constraint<T>... constraints)
Creates aMultiConstraint
from given constraints.Constructor parameters in org.opentrafficsim.base.parameters.constraint with type arguments of type Constraint Constructor Description MultiConstraint(java.util.Set<Constraint<T>> constraints)
Constructor.