Class DefaultsNl
java.lang.Object
org.opentrafficsim.core.definitions.Defaults
org.opentrafficsim.core.definitions.DefaultsNl
- All Implemented Interfaces:
BiFunction<GtuType,StreamInterface, GtuTemplate>
public final class DefaultsNl
extends Defaults
implements BiFunction<GtuType,StreamInterface,GtuTemplate>
Defaults for locale nl_NL.
Copyright (c) 2022-2023 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 LinkTypeDeprecated.static final GtuTypeSuper type for emergency vehicles.static final LinkTypeFreeway (snelweg, 130km/h).Standard drawing colors for GTU types.static final LinkTypeHighway (autoweg, 100km/h).static final GtuTypeSuper type for mopeds.static final GtuTypeDeprecated.static final LinkTypeDeprecated.static final GtuTypeSuper type for pedestrians.static final LinkTypeProvincial (provinciaalse weg / N-weg, 80km/h).static final LinkTypeRailway.static final GtuTypeSuper type for all rail users.static final LinkTypeResidential (buurtweg, 30km/h).static final LinkTypeSuper type for all roads.static final GtuTypeSuper type for all road users.static final LinkTypeRural (landelijk, 60km/h).static final GtuTypeSuper type for scheduled busses.static final GtuTypeSuper type for ships.static final GtuTypeSuper type for trains.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 LinkTypeWaterway.static final GtuTypeSuper type for all water way users. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(GtuType gtuType, StreamInterface randomStream) Returns 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
-
NONE
Deprecated.This is here only because it is in the file default_gtutypes.xml as a default, i.e the parser needs to find it. -
ROAD_USER
Super type for all road users. -
WATERWAY_USER
Super type for all water way users. -
RAILWAY_USER
Super type for all rail 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. -
SHIP
Super type for ships. -
TRAIN
Super type for trains. -
CAR
Super type for cars. -
VAN
Super type for vans. -
BUS
Super type for busses. -
TRUCK
Super type for trucks. -
SCHEDULED_BUS
Super type for scheduled busses. -
GTU_TYPE_COLORS
Standard drawing colors for GTU types. -
NONE_LINK
Deprecated.This is here only because it is in the file default_linktypes.xml as a default, i.e the parser needs to find it. -
CONNECTOR
Deprecated.This is here only because it is in the file default_linktypes.xml as a default, i.e the parser needs to find it. -
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). -
WATERWAY
Waterway. -
RAILWAY
Railway.
-
-
Constructor Details
-
DefaultsNl
DefaultsNl()Constructor setting locale nl_NL.
-
-
Method Details
-
apply
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,StreamInterface, GtuTemplate> - Parameters:
gtuType- GtuType; GTU type.randomStream- StreamInterface; random stream.- Returns:
- TemplateGtuType; template,
nullif no default is defined.
-