Enum RollingLaneStructureRecord.RecordLink

    • Method Detail

      • values

        public static RollingLaneStructureRecord.RecordLink[] 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 (RollingLaneStructureRecord.RecordLink c : RollingLaneStructureRecord.RecordLink.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RollingLaneStructureRecord.RecordLink 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
      • calculateStartDistance

        public abstract Length calculateStartDistance​(RollingLaneStructureRecord startDistanceSource,
                                                      RollingLaneStructureRecord self,
                                                      double fractionalPosition)
        Calculate the start position of this record based on a neighboring source.
        Parameters:
        startDistanceSource - RollingLaneStructureRecord; source record in the tree
        self - RollingLaneStructureRecord; own record
        fractionalPosition - double; fractional position on the cross-section
        Returns:
        start position of this record based on a neighboring source