Interface Cost<T extends EdgeSegment>

    • Method Detail

      • getSegmentCost

        double getSegmentCost​(Mode mode,
                              T edgeSegment)
                       throws PlanItException
        Returns the cost of travel along an edge segment for a specified mode
        Parameters:
        mode - the specified mode of travel
        edgeSegment - the specified edge segment (which can be physical or virtual)
        Returns:
        the cost of travel along the specified segment
        Throws:
        PlanItException - the exception thrown when not available