Class DefaultsFactory

java.lang.Object
org.opentrafficsim.demo.DefaultsFactory

public final class DefaultsFactory extends Object
Factory for defaults in demos.

Copyright (c) 2013-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

    Fields
    Modifier and Type
    Field
    Description
    static final org.djutils.immutablecollections.ImmutableMap<org.opentrafficsim.core.gtu.GtuType,Color>
    Standard drawing colors for GTU types.
    static final org.djutils.immutablecollections.ImmutableMap<org.opentrafficsim.core.gtu.GtuType,org.opentrafficsim.draw.gtu.DefaultCarAnimation.GtuData.GtuMarker>
    Standard markers for GTU types.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.opentrafficsim.base.parameters.Parameters
    Returns a default set of parameters.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • GTU_TYPE_COLORS

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

      public static final org.djutils.immutablecollections.ImmutableMap<org.opentrafficsim.core.gtu.GtuType,org.opentrafficsim.draw.gtu.DefaultCarAnimation.GtuData.GtuMarker> GTU_TYPE_MARKERS
      Standard markers for GTU types.
  • Method Details

    • getDefaultParameters

      public static org.opentrafficsim.base.parameters.Parameters getDefaultParameters()
      Returns a default set of parameters.
      Returns:
      Default set of parameters.