public class GTUTypeAssumptions extends Object implements Serializable
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 |
|---|
GTUTypeAssumptions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics |
getBehavioralCharacteristics(org.opentrafficsim.core.gtu.GTUType gtuType)
Return the behavioral characteristics model for a certain GTUType as an assumption for that GTUType.
|
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.
|
int |
hashCode() |
void |
setBehavioralCharacteristics(org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics)
Set the behavioral characteristics for a certain GTUType as an assumption for that GTUType.
|
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.
|
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 setBehavioralCharacteristics(org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics)
gtuType - the GTUType to set the model forbehavioralCharacteristics - 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.core.gtu.behavioralcharacteristics.BehavioralCharacteristics getBehavioralCharacteristics(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–2017 Delft University of Technology. All rights reserved.