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 GtuTypeSuper type for bicycle.static final GtuTypeSuper type for busses.static final GtuTypeSuper type for cars.static final LinkTypeConnector type.static final GtuTypeSuper type for emergency vehicles.static final LinkTypeFreeway (snelweg, 130km/h).static final LinkTypeHighway (autoweg, 100km/h).static final DetectorTypeLoop detector type.static final GtuTypeSuper type for mopeds.static final GtuTypeSuper type for motorcycles.static final GtuTypeSuper type for pedestrians.static final LinkTypeProvincial (provinciaalse weg / N-weg, 80km/h).static final LinkTypeResidential (buurtweg, 30km/h).static final LinkTypeSuper type for all roads.static final GtuTypeSuper type for all road users.static final DetectorTypeMakes a Detector compatible with all road users, e.g. for SinkDetector.static final LinkTypeRural (landelijk, 60km/h).static final GtuTypeSuper type for scheduled busses.static final DetectorTypeTraffic light detector type.static final GtuTypeSuper type for trucks.static final LinkTypeUrban (stedelijk, 50km/h).static final GtuTypeSuper type for vans.static final GtuTypeSuper type for vehicles.static final DetectorTypeMakes 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, getLocaleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, returningnullfor 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:
applyin interfaceBiFunction<GtuType,nl.tudelft.simulation.jstats.streams.StreamInterface, GtuTemplate> - Parameters:
gtuType- GTU type.randomStream- random stream.- Returns:
- template,
nullif no default is defined.
-