Interface Mode

    • Field Detail

      • GLOBAL_DEFAULT_MAXIMUM_SPEED_KMH

        static final double GLOBAL_DEFAULT_MAXIMUM_SPEED_KMH
        Default max speed in km/h
        See Also:
        Constant Field Values
      • GLOBAL_DEFAULT_PCU

        static final double GLOBAL_DEFAULT_PCU
        Default pcu in pcu
        See Also:
        Constant Field Values
      • DEFAULT_XML_ID

        static final String DEFAULT_XML_ID
        If no mode is defined the default mode is assumed to have an XML id of 1
        See Also:
        Constant Field Values
    • Method Detail

      • getPcu

        double getPcu()
        Passenger car unit conversion factor for this mode
        Returns:
        pcu
      • getPhysicalFeatures

        PhysicalModeFeatures getPhysicalFeatures()
        collect the physical features of this mode
        Returns:
        the physical mode features
      • hasPhysicalFeatures

        default boolean hasPhysicalFeatures()
        Verify if physical features are available
        Returns:
        true if available, false otherwise
      • getUseFeatures

        UsabilityModeFeatures getUseFeatures()
        collect the features of how this mode is used (public, private etc.)
        Returns:
        the use features of this mode
      • hasUseFeatures

        default boolean hasUseFeatures()
        Verify if use features are available
        Returns:
        true if available, false otherwise
      • getName

        String getName()
        Name of this mode
        Returns:
        the name
      • getMaximumSpeedKmH

        double getMaximumSpeedKmH()
        maximum speed for this mode
        Returns:
        maximum speed
      • isPredefinedModeType

        default boolean isPredefinedModeType()
        check if the mode is one of the PLANit predefined mode types or not
        Returns:
        true when predefined, false, when custom
      • getPredefinedModeType

        default PredefinedModeType getPredefinedModeType()
        collect the predefined mode type
        Returns:
        the type, set to CUSTOM when it is not one of the regular predefined modes
      • hasName

        default boolean hasName()
        Verify if mode has a name
        Returns:
        true when present, false otherwise