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
Modifier 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).Standard drawing colors for GTU types.static final LinkType
Highway (autoweg, 100km/h).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
Railway.static final GtuType
Super type for all rail users.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 LinkType
Rural (landelijk, 60km/h).static final GtuType
Super type for scheduled busses.static final GtuType
Super type for ships.static final GtuType
Super type for trains.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 LinkType
Waterway.static final GtuType
Super type for all water way users. -
Constructor Summary
-
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. -
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. -
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. -
GTU_TYPE_COLORS
Standard drawing colors for GTU types. -
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). -
WATERWAY
Waterway. -
RAILWAY
Railway.
-
-
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
- GtuType; GTU type.randomStream
- StreamInterface; random stream.- Returns:
- TemplateGtuType; template,
null
if no default is defined.
-