public class BehavioralCharacteristicsFactoryByType extends Object implements BehavioralCharacteristicsFactory
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
BehavioralCharacteristicsFactoryByType() |
| Modifier and Type | Method and Description |
|---|---|
<U extends org.djunits.unit.Unit<U>,T extends org.djunits.value.vdouble.scalar.AbstractDoubleScalarRel<U,T>> |
addGaussianParameter(GTUType gtuType,
ParameterType<T> parameterType,
T mu,
T sig,
StreamInterface stream) |
void |
addGaussianParameter(GTUType gtuType,
ParameterTypeDouble parameterType,
double mu,
double sig,
StreamInterface stream) |
<T extends org.djunits.value.vdouble.scalar.DoubleScalarInterface> |
addParameter(GTUType gtuType,
ParameterType<T> parameterType,
T value) |
void |
addParameter(GTUType gtuType,
ParameterTypeDouble parameterType,
double value) |
void |
setValues(BehavioralCharacteristics defaultCharacteristics,
GTUType gtuType)
Creates a set of behavioral characteristics for the provided GTU type.
|
String |
toString() |
public BehavioralCharacteristicsFactoryByType()
public void setValues(BehavioralCharacteristics defaultCharacteristics, GTUType gtuType)
setValues in interface BehavioralCharacteristicsFactorydefaultCharacteristics - default behavioral characteristicsgtuType - GTU typepublic <T extends org.djunits.value.vdouble.scalar.DoubleScalarInterface> void addParameter(GTUType gtuType, ParameterType<T> parameterType, T value)
T - typegtuType - the gtu typeparameterType - the parameter typevalue - the value of the parameterpublic void addParameter(GTUType gtuType, 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 addGaussianParameter(GTUType gtuType, ParameterType<T> parameterType, T mu, T sig, StreamInterface stream)
U - unitT - typegtuType - the gtu typeparameterType - the parameter typemu - meansig - standard deviationstream - random number streampublic void addGaussianParameter(GTUType gtuType, ParameterTypeDouble parameterType, double mu, double sig, StreamInterface stream)
gtuType - the gtu typeparameterType - the parameter typemu - meansig - standard deviationstream - random number streamCopyright © 2014–2017 Delft University of Technology. All rights reserved.