public class GTUTypeAssumptions extends Object implements Serializable
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.
| Constructor and Description |
|---|
GTUTypeAssumptions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
CarFollowingModel |
getCarFollowingModel(GTUType gtuType)
Return the car following model for a certain GTUType as an assumption for that GTUType.
|
Speed |
getLaneTypeMaxSpeed(GTUType gtuType,
LaneType laneType)
Return the maximum speed on a LaneType for a certain GTUType as an assumption for that GTUType.
|
Map<LaneType,Speed> |
getMaxSpeeds(GTUType gtuType)
Return a safe copy of the maximum speed for all LaneTypes for a certain GTUType as an assumption for that GTUType.
|
Parameters |
getParameters(GTUType gtuType)
Return the parameters model for a certain GTUType as an assumption for that GTUType.
|
int |
hashCode() |
void |
setCarFollowingModel(GTUType gtuType,
CarFollowingModel carFollowingModel)
Set the car following model for a certain GTUType as an assumption for that GTUType.
|
void |
setLaneTypeMaxSpeed(GTUType gtuType,
LaneType laneType,
Speed maxSpeed)
Set the maximum speed for a certain GTUType on a certain LaneType as an assumption for that GTUType.
|
void |
setParameters(GTUType gtuType,
Parameters parameters)
Set the parameters for a certain GTUType as an assumption for that GTUType.
|
String |
toString() |
public final void setCarFollowingModel(GTUType gtuType, CarFollowingModel carFollowingModel)
gtuType - the GTUType to set the model forcarFollowingModel - the model to set for the GTUTypepublic final void setParameters(GTUType gtuType, Parameters parameters)
gtuType - the GTUType to set the model forparameters - the model to set for the GTUTypepublic final void setLaneTypeMaxSpeed(GTUType gtuType, LaneType laneType, 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(GTUType gtuType)
gtuType - the GTUType to get the model forpublic final Parameters getParameters(GTUType gtuType)
gtuType - the GTUType to get the model forpublic final Speed getLaneTypeMaxSpeed(GTUType gtuType, LaneType laneType)
gtuType - the GTUType to get the maximum speed forlaneType - the LaneType to get the maximum speed forpublic final Map<LaneType,Speed> getMaxSpeeds(GTUType gtuType)
gtuType - the GTUType to get the maximum speed forCopyright © 2014–2018 Delft University of Technology. All rights reserved.