Class NetworkTeleatlasAddSpeedRestrictions

    • Constructor Detail

    • Method Detail

      • run

        public void run​(Network network)
        Reading and assigning speed restrictions to the links of a network.

        It uses the following attributes from the Tele Atlas MultiNet speed restriction DBF file:

        • SR_ID_NAME (Feature Identification)
        • SR_SPEED_NAME (Speed Restriction)
        • SR_VALDIR_NAME (Validity Direction)
          • 1: Valid in Both Directions
          • 2: Valid Only in Positive Direction
          • 3: Valid Only in Negative Direction
        • SR_VERIFIED_NAME (Verified)
          • 0: Not Verified (default)
          • 1: Verified

        Conversion rules:

        • speed restrictions that are not verified will be ignored.
        • speed restrictions will be assigned in given directions (SR_VALDIR_NAME)
        • speed restrictions will be ignored if the corresponding link is not found (produces a trace message).
        • speed restrictions will not be assigned to the link if it already contains a speed that is lower then the one from the speed restrictions file.

        Specified by:
        run in interface NetworkRunnable
        Parameters:
        network -
        Throws:
        RuntimeException - with another Exception in it in the case something goes wrong
      • printInfo

        public final void printInfo​(String prefix)
        prints the variable settings to the STDOUT
        Parameters:
        prefix - a prefix for each line of the STDOUT