Class DefaultsNl
java.lang.Object
org.opentrafficsim.core.definitions.Defaults
org.opentrafficsim.core.definitions.DefaultsNl
- All Implemented Interfaces:
BiFunction<GtuType,
nl.tudelft.simulation.jstats.streams.StreamInterface, GtuTemplate>
public final class DefaultsNl
extends Defaults
implements BiFunction<GtuType,nl.tudelft.simulation.jstats.streams.StreamInterface,GtuTemplate>
Defaults for locale nl_NL.
Copyright (c) 2022-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GtuType
Super type for bicycle.static final GtuType
Super type for busses.static final GtuType
Super type for cars.static final LinkType
Connector type.static final GtuType
Super type for emergency vehicles.static final LinkType
Freeway (snelweg, 130km/h).static final LinkType
Highway (autoweg, 100km/h).static final DetectorType
Loop detector type.static final GtuType
Super type for mopeds.static final GtuType
Super type for motorcycles.static final GtuType
Super type for pedestrians.static final LinkType
Provincial (provinciaalse weg / N-weg, 80km/h).static final LinkType
Residential (buurtweg, 30km/h).static final LinkType
Super type for all roads.static final GtuType
Super type for all road users.static final DetectorType
Makes a Detector compatible with all road users, e.g. for SinkDetector.static final LinkType
Rural (landelijk, 60km/h).static final GtuType
Super type for scheduled busses.static final DetectorType
Traffic light detector type.static final GtuType
Super type for trucks.static final LinkType
Urban (stedelijk, 50km/h).static final GtuType
Super type for vans.static final GtuType
Super type for vehicles.static final DetectorType
Makes a Detector compatible with all vehicles, e.g. for loop detectors. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a template for the given GTU type.Methods inherited from class org.opentrafficsim.core.definitions.Defaults
getByName, getByName, getLocale
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
ROAD_USER
Super type for all road users. -
PEDESTRIAN
Super type for pedestrians. -
BICYCLE
Super type for bicycle. -
MOPED
Super type for mopeds. -
VEHICLE
Super type for vehicles. -
EMERGENCY_VEHICLE
Super type for emergency vehicles. -
CAR
Super type for cars. -
MOTORCYCLE
Super type for motorcycles. -
VAN
Super type for vans. -
BUS
Super type for busses. -
TRUCK
Super type for trucks. -
SCHEDULED_BUS
Super type for scheduled busses. -
CONNECTOR
Connector type. -
ROAD
Super type for all roads. -
FREEWAY
Freeway (snelweg, 130km/h). -
HIGHWAY
Highway (autoweg, 100km/h). -
PROVINCIAL
Provincial (provinciaalse weg / N-weg, 80km/h). -
RURAL
Rural (landelijk, 60km/h). -
URBAN
Urban (stedelijk, 50km/h). -
RESIDENTIAL
Residential (buurtweg, 30km/h). -
ROAD_USERS
Makes a Detector compatible with all road users, e.g. for SinkDetector. -
VEHICLES
Makes a Detector compatible with all vehicles, e.g. for loop detectors. -
LOOP_DETECTOR
Loop detector type. -
TRAFFIC_LIGHT
Traffic light detector type.
-
-
Constructor Details
-
DefaultsNl
DefaultsNl()Constructor setting locale nl_NL.
-
-
Method Details
-
apply
public GtuTemplate apply(GtuType gtuType, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) Returns a template for the given GTU type. This can be defined at the level of super types, returningnull
for more specific types. There is no need to define a template for all default types defined for a locale, so long as at least one parent of each type has a template defined.
Note: implementations should not cache the template per GTU type, as different simulations may request templates for the same GTU type, while having their separate random streams.- Specified by:
apply
in interfaceBiFunction<GtuType,
nl.tudelft.simulation.jstats.streams.StreamInterface, GtuTemplate> - Parameters:
gtuType
- GTU type.randomStream
- random stream.- Returns:
- template,
null
if no default is defined.
-