Uses of Class
org.opentrafficsim.road.network.speed.SpeedLimitType
| Package | Description |
|---|---|
| org.opentrafficsim.road.network.speed |
Classes to connect driver behavior with many different aspects that govern the desired speed.
|
-
Uses of SpeedLimitType in org.opentrafficsim.road.network.speed
Subclasses of SpeedLimitType in org.opentrafficsim.road.network.speed Modifier and Type Class Description classSpeedLimitTypeSpeedImplementation of SpeedLimitType suitable for the most common speed info classSpeed.classSpeedLimitTypeSpeedLegalSimilar toSpeedLimitTypeSpeedbut implements the marker interfaceLegalSpeedLimit.Fields in org.opentrafficsim.road.network.speed declared as SpeedLimitType Modifier and Type Field Description static SpeedLimitType<SpeedInfoCurvature>SpeedLimitTypes. CURVATURECurvature speed limit type.Methods in org.opentrafficsim.road.network.speed with parameters of type SpeedLimitType Modifier and Type Method Description <T> voidSpeedLimitInfo. addSpeedInfo(SpeedLimitType<T> speedLimitType, T speedInfo)Adds or overwrites the speed info of the given speed limit type.<T> voidSpeedLimitProspect. addSpeedInfo(Length distance, SpeedLimitType<T> speedLimitType, T speedInfo, Object source)Sets the speed info of a speed limit type.<T> SpeedLimitInfoSpeedLimitProspect. buildSpeedLimitInfo(Length distance, SpeedLimitType<T> speedLimitType)Builds speed limit info with only MAX_VEHICLE_SPEED and the given speed limit type, where the speed info is obtained at the given distance.booleanSpeedLimitInfo. containsType(SpeedLimitType<?> speedLimitType)Whether speed info is present for the given speed limit type.List<Length>SpeedLimitProspect. getDistances(SpeedLimitType<?> speedLimitType)Returns the distances at which a change of the given speed limit type in the prospect is present in order (most upstream first).List<Length>SpeedLimitProspect. getDownstreamDistances(SpeedLimitType<?> speedLimitType)Returns the downstream distances at which a change of the given speed limit type in the prospect is present in order (most upstream first).<T> TSpeedLimitInfo. getSpeedInfo(SpeedLimitType<T> speedLimitType)Returns the info regarding a specific speed limit type.<T> TSpeedLimitProspect. getSpeedInfoChange(Length distance, SpeedLimitType<T> speedLimitType)Returns the speed info of given speed limit type where it changed.List<Length>SpeedLimitProspect. getUpstreamDistances(SpeedLimitType<?> speedLimitType)Returns the upstream distances at which a change of the given speed limit type in the prospect is present in order (most upstream first).voidSpeedLimitInfo. removeSpeedInfo(SpeedLimitType<?> speedLimitType)Removes the speed info of given speed limit type.voidSpeedLimitProspect. removeSpeedInfo(Length distance, SpeedLimitType<?> speedLimitType, Object source)Removes the speed info of a speed limit type.booleanSpeedLimitProspect. speedInfoChanged(Length distance, SpeedLimitType<?> speedLimitType)Returns whether the given speed limit type is changed at the given distance.