public class GTUTypeAssumptions extends Object implements Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
GTUTypeAssumptions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
CarFollowingModel |
getCarFollowingModel(org.opentrafficsim.core.gtu.GTUType gtuType)
Return the car following model for a certain GTUType as an assumption for that GTUType.
|
org.djunits.value.vdouble.scalar.Speed |
getLaneTypeMaxSpeed(org.opentrafficsim.core.gtu.GTUType gtuType,
LaneType laneType)
Return the maximum speed on a LaneType for a certain GTUType as an assumption for that GTUType.
|
Map<LaneType,org.djunits.value.vdouble.scalar.Speed> |
getMaxSpeeds(org.opentrafficsim.core.gtu.GTUType gtuType)
Return a safe copy of the maximum speed for all LaneTypes for a certain GTUType as an assumption for that GTUType.
|
org.opentrafficsim.base.parameters.Parameters |
getParameters(org.opentrafficsim.core.gtu.GTUType gtuType)
Return the parameters model for a certain GTUType as an assumption for that GTUType.
|
int |
hashCode() |
void |
setCarFollowingModel(org.opentrafficsim.core.gtu.GTUType gtuType,
CarFollowingModel carFollowingModel)
Set the car following model for a certain GTUType as an assumption for that GTUType.
|
void |
setLaneTypeMaxSpeed(org.opentrafficsim.core.gtu.GTUType gtuType,
LaneType laneType,
org.djunits.value.vdouble.scalar.Speed maxSpeed)
Set the maximum speed for a certain GTUType on a certain LaneType as an assumption for that GTUType.
|
void |
setParameters(org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.base.parameters.Parameters parameters)
Set the parameters for a certain GTUType as an assumption for that GTUType.
|
String |
toString() |
public final void setCarFollowingModel(org.opentrafficsim.core.gtu.GTUType gtuType,
CarFollowingModel carFollowingModel)
gtuType - the GTUType to set the model forcarFollowingModel - the model to set for the GTUTypepublic final void setParameters(org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.base.parameters.Parameters parameters)
gtuType - the GTUType to set the model forparameters - the model to set for the GTUTypepublic final void setLaneTypeMaxSpeed(org.opentrafficsim.core.gtu.GTUType gtuType,
LaneType laneType,
org.djunits.value.vdouble.scalar.Speed maxSpeed)
gtuType - the GTUType to set the model forlaneType - the laneType to set the speed formaxSpeed - the maximum speed on the laneType for the given GTUTypepublic final CarFollowingModel getCarFollowingModel(org.opentrafficsim.core.gtu.GTUType gtuType)
gtuType - the GTUType to get the model forpublic final org.opentrafficsim.base.parameters.Parameters getParameters(org.opentrafficsim.core.gtu.GTUType gtuType)
gtuType - the GTUType to get the model forpublic final org.djunits.value.vdouble.scalar.Speed getLaneTypeMaxSpeed(org.opentrafficsim.core.gtu.GTUType gtuType,
LaneType laneType)
gtuType - the GTUType to get the maximum speed forlaneType - the LaneType to get the maximum speed forpublic final Map<LaneType,org.djunits.value.vdouble.scalar.Speed> getMaxSpeeds(org.opentrafficsim.core.gtu.GTUType gtuType)
gtuType - the GTUType to get the maximum speed forCopyright © 2014–2018 Delft University of Technology. All rights reserved.