Enum LinkType.DEFAULTS

    • Enum Constant Detail

      • NONE

        public static final LinkType.DEFAULTS NONE
        The link type that does not allow any vehicles, or pedestrians.
      • ROAD

        public static final LinkType.DEFAULTS ROAD
        Two-directional road, accessible to all road GTU types (including PEDESTRIAN).
      • FREEWAY

        public static final LinkType.DEFAULTS FREEWAY
        One-directional road, accessible to all road GTU types (excluding PEDESTRIAN and BICYCLE).
      • WATERWAY

        public static final LinkType.DEFAULTS WATERWAY
        Two-directional water way.
      • CONNECTOR

        public static final LinkType.DEFAULTS CONNECTOR
        Virtual connection between nodes, e.g. to distribute demand.
    • Method Detail

      • values

        public static LinkType.DEFAULTS[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LinkType.DEFAULTS c : LinkType.DEFAULTS.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LinkType.DEFAULTS valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getId

        public String getId()
        Returns:
        the id