Interface MacroscopicLinkSegment

    • Method Detail

      • computeCapacity

        double computeCapacity()
        Return the total link segment capacity in pcu/h
        Returns:
        linkSegmentCapacity in PCU/h
      • computeFreeFlowTravelTime

        double computeFreeFlowTravelTime​(Mode mode)
                                  throws PlanItException
        Compute the free flow travel time by mode, i.e. when the link's maximum speed might be capped by the mode's maximum speed If the input data are invalid, this method logs the problem and returns a negative value.
        Parameters:
        mode - mode of travel
        Returns:
        freeFlowTravelTime for this mode
        Throws:
        PlanItException - thrown if error
      • setLinkSegmentType

        void setLinkSegmentType​(MacroscopicLinkSegmentType linkSegmentType)
        Set the link segment type this link segment adheres to
        Parameters:
        linkSegmentType - the link segment type
      • getLinkSegmentType

        MacroscopicLinkSegmentType getLinkSegmentType()
        Collect the link segment type of the link segment
        Returns:
        the link segment