public class ParameterFactoryByType extends Object implements ParameterFactory
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ParameterFactoryByType.Correlation<C,T>
Correlates two parameter values.
|
| Constructor and Description |
|---|
ParameterFactoryByType() |
| Modifier and Type | Method and Description |
|---|---|
<C,T> void |
addCorrelation(GTUType gtuType,
org.opentrafficsim.base.parameters.ParameterType<C> first,
org.opentrafficsim.base.parameters.ParameterType<T> then,
ParameterFactoryByType.Correlation<C,T> correlation)
Correlates one parameter to another.
|
<C,T> void |
addCorrelation(org.opentrafficsim.base.parameters.ParameterType<C> first,
org.opentrafficsim.base.parameters.ParameterType<T> then,
ParameterFactoryByType.Correlation<C,T> correlation)
Correlates one parameter to another for all GTU types.
|
<T extends org.djunits.value.vdouble.scalar.DoubleScalarInterface> |
addParameter(GTUType gtuType,
org.opentrafficsim.base.parameters.ParameterType<T> parameterType,
T value) |
void |
addParameter(GTUType gtuType,
org.opentrafficsim.base.parameters.ParameterTypeDouble parameterType,
nl.tudelft.simulation.jstats.distributions.DistContinuous distribution) |
void |
addParameter(GTUType gtuType,
org.opentrafficsim.base.parameters.ParameterTypeDouble parameterType,
double value) |
<U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.AbstractDoubleScalarRel<U,T>> |
addParameter(GTUType gtuType,
org.opentrafficsim.base.parameters.ParameterTypeNumeric<T> parameterType,
ContinuousDistDoubleScalar.Rel<T,U> distribution) |
<T extends org.djunits.value.vdouble.scalar.DoubleScalarInterface> |
addParameter(org.opentrafficsim.base.parameters.ParameterType<T> parameterType,
T value)
Add parameter for all GTU types.
|
void |
addParameter(org.opentrafficsim.base.parameters.ParameterTypeDouble parameterType,
nl.tudelft.simulation.jstats.distributions.DistContinuous distribution)
Add parameter for all GTU types.
|
void |
addParameter(org.opentrafficsim.base.parameters.ParameterTypeDouble parameterType,
double value)
Add parameter for all GTU types.
|
<U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.AbstractDoubleScalarRel<U,T>> |
addParameter(org.opentrafficsim.base.parameters.ParameterTypeNumeric<T> parameterType,
ContinuousDistDoubleScalar.Rel<T,U> distribution)
Add parameter for all GTU types.
|
void |
setValues(org.opentrafficsim.base.parameters.Parameters parameters,
GTUType gtuType)
Creates a set of parameters for the provided GTU type.
|
String |
toString() |
public void setValues(org.opentrafficsim.base.parameters.Parameters parameters,
GTUType gtuType)
setValues in interface ParameterFactoryparameters - Parameters; parametersgtuType - GTUType; GTU typepublic <T extends org.djunits.value.vdouble.scalar.DoubleScalarInterface> void addParameter(GTUType gtuType, org.opentrafficsim.base.parameters.ParameterType<T> parameterType, T value)
T - parameter value typegtuType - the gtu typeparameterType - the parameter typevalue - the value of the parameterpublic void addParameter(GTUType gtuType, org.opentrafficsim.base.parameters.ParameterTypeDouble parameterType, double value)
gtuType - the gtu typeparameterType - the parameter typevalue - the value of the parameterpublic <U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.AbstractDoubleScalarRel<U,T>> void addParameter(GTUType gtuType, org.opentrafficsim.base.parameters.ParameterTypeNumeric<T> parameterType, ContinuousDistDoubleScalar.Rel<T,U> distribution)
U - unit typeT - parameter value typegtuType - the gtu typeparameterType - the parameter typedistribution - the distribution of the parameterpublic void addParameter(GTUType gtuType, org.opentrafficsim.base.parameters.ParameterTypeDouble parameterType, nl.tudelft.simulation.jstats.distributions.DistContinuous distribution)
gtuType - the gtu typeparameterType - the parameter typedistribution - the distribution of the parameterpublic <T extends org.djunits.value.vdouble.scalar.DoubleScalarInterface> void addParameter(org.opentrafficsim.base.parameters.ParameterType<T> parameterType,
T value)
T - typeparameterType - the parameter typevalue - the value of the parameterpublic void addParameter(org.opentrafficsim.base.parameters.ParameterTypeDouble parameterType,
double value)
parameterType - the parameter typevalue - the value of the parameterpublic <U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.AbstractDoubleScalarRel<U,T>> void addParameter(org.opentrafficsim.base.parameters.ParameterTypeNumeric<T> parameterType,
ContinuousDistDoubleScalar.Rel<T,U> distribution)
U - unit typeT - parameter value typeparameterType - the parameter typedistribution - the distribution of the parameterpublic void addParameter(org.opentrafficsim.base.parameters.ParameterTypeDouble parameterType,
nl.tudelft.simulation.jstats.distributions.DistContinuous distribution)
parameterType - the parameter typedistribution - the distribution of the parameterpublic <C,T> void addCorrelation(GTUType gtuType, org.opentrafficsim.base.parameters.ParameterType<C> first, org.opentrafficsim.base.parameters.ParameterType<T> then, ParameterFactoryByType.Correlation<C,T> correlation)
null, in which case the parameter can be
correlated to an external source.C - parameter value type of first parameterT - parameter value type of then parametergtuType - GTUType; GTU typefirst - ParameterType; independent parameterthen - ParameterType; dependent parametercorrelation - Correlation; correlationpublic <C,T> void addCorrelation(org.opentrafficsim.base.parameters.ParameterType<C> first,
org.opentrafficsim.base.parameters.ParameterType<T> then,
ParameterFactoryByType.Correlation<C,T> correlation)
C - parameter value type of first parameterT - parameter value type of then parameterfirst - ParameterType; independent parameterthen - ParameterType; dependent parametercorrelation - Correlation; correlationCopyright © 2014–2018 Delft University of Technology. All rights reserved.