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 Details

    • ROAD_USER

      public static final GtuType ROAD_USER
      Super type for all road users.
    • WATERWAY_USER

      public static final GtuType WATERWAY_USER
      Super type for all water way users.
    • RAILWAY_USER

      public static final GtuType RAILWAY_USER
      Super type for all rail users.
    • PEDESTRIAN

      public static final GtuType PEDESTRIAN
      Super type for pedestrians.
    • BICYCLE

      public static final GtuType BICYCLE
      Super type for bicycle.
    • MOPED

      public static final GtuType MOPED
      Super type for mopeds.
    • VEHICLE

      public static final GtuType VEHICLE
      Super type for vehicles.
    • EMERGENCY_VEHICLE

      public static final GtuType EMERGENCY_VEHICLE
      Super type for emergency vehicles.
    • SHIP

      public static final GtuType SHIP
      Super type for ships.
    • TRAIN

      public static final GtuType TRAIN
      Super type for trains.
    • CAR

      public static final GtuType CAR
      Super type for cars.
    • MOTORCYCLE

      public static final GtuType MOTORCYCLE
      Super type for motorcycles.
    • VAN

      public static final GtuType VAN
      Super type for vans.
    • BUS

      public static final GtuType BUS
      Super type for busses.
    • TRUCK

      public static final GtuType TRUCK
      Super type for trucks.
    • SCHEDULED_BUS

      public static final GtuType SCHEDULED_BUS
      Super type for scheduled busses.
    • GTU_TYPE_COLORS

      public static final org.djutils.immutablecollections.ImmutableMap<GtuType,Color> GTU_TYPE_COLORS
      Standard drawing colors for GTU types.
    • CONNECTOR

      public static final LinkType CONNECTOR
      Connector type.
    • ROAD

      public static final LinkType ROAD
      Super type for all roads.
    • FREEWAY

      public static final LinkType FREEWAY
      Freeway (snelweg, 130km/h).
    • HIGHWAY

      public static final LinkType HIGHWAY
      Highway (autoweg, 100km/h).
    • PROVINCIAL

      public static final LinkType PROVINCIAL
      Provincial (provinciaalse weg / N-weg, 80km/h).
    • RURAL

      public static final LinkType RURAL
      Rural (landelijk, 60km/h).
    • URBAN

      public static final LinkType URBAN
      Urban (stedelijk, 50km/h).
    • RESIDENTIAL

      public static final LinkType RESIDENTIAL
      Residential (buurtweg, 30km/h).
    • WATERWAY

      public static final LinkType WATERWAY
      Waterway.
    • RAILWAY

      public static final LinkType 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, returning null 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 interface BiFunction<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.