Class CrossSection

    • Constructor Detail

      • CrossSection

        public CrossSection​(Set<LanePosition> lanePositions)
        Constructor with set of lane positions.
        Parameters:
        lanePositions - Set<LanePosition>; set of lane locations
      • CrossSection

        public CrossSection​(LinkData<?> link,
                            double fraction)
                     throws SamplingException
        Constructor with link and fraction.
        Parameters:
        link - LinkData<?>; link
        fraction - double; fraction on link
        Throws:
        SamplingException - if an input is null
    • Method Detail

      • size

        public final int size()
        Returns the number of lane positions.
        Returns:
        number of directed lane positions
      • getLanePositions

        public final Set<LanePosition> getLanePositions()
        Returns a safe copy of the lane positions.
        Returns:
        safe copy of lane positions
      • getIterator

        public final Iterator<LanePosition> getIterator()
        Returns an iterator over the lane positions.
        Returns:
        iterator over lane positions