Class FreeFlowLinkTravelTimeCost

    • Constructor Detail

      • FreeFlowLinkTravelTimeCost

        public FreeFlowLinkTravelTimeCost​(IdGroupingToken groupId)
        Constructor
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
      • FreeFlowLinkTravelTimeCost

        public FreeFlowLinkTravelTimeCost​(FreeFlowLinkTravelTimeCost other)
        Copy Constructor
        Parameters:
        other - to copy
    • Method Detail

      • updateTimePeriod

        public void updateTimePeriod​(TimePeriod timePeriod)
        Provide the cost calculation with information regarding the time period for which the cost is to be calculated
        Specified by:
        updateTimePeriod in class AbstractPhysicalCost
        Parameters:
        timePeriod - to apply
      • getGeneralisedCost

        public double getGeneralisedCost​(Mode mode,
                                         MacroscopicLinkSegment linkSegment)
        Return the free flow travel time for the current link for a given mode If the input data are invalid, this method returns a negative value.
        Parameters:
        mode - the current Mode of travel
        linkSegment - the current link segment
        Returns:
        the travel time for the current link (in hours)
      • getTravelTimeCost

        public double getTravelTimeCost​(Mode mode,
                                        MacroscopicLinkSegment linkSegment)
        Returns the generalised cost of travel along an edge segment for a specified mode
        Parameters:
        mode - the specified mode of travel
        linkSegment - the specified edge segment (which can be physical or virtual)
        Returns:
        the cost of travel along the specified segment
      • getDTravelTimeDFlow

        public double getDTravelTimeDFlow​(boolean uncongested,
                                          Mode mode,
                                          MacroscopicLinkSegment linkSegment)
        Derivative of free flow travel time is zero
        Parameters:
        uncongested - flag idicating if the provided flow is uncongested or congested flow, relevant when flow can represent multiple traffic states
        mode - to use
        linkSegment - to use
        Returns:
        the first derivative of travel time for a unit flow rate change in PCU per Hour