Class LinkSegmentExpectedResultsDto


  • public class LinkSegmentExpectedResultsDto
    extends Object
    DTO object containing extra fields specific to BPR function The first
    Author:
    gman6028
    • Constructor Detail

      • LinkSegmentExpectedResultsDto

        public LinkSegmentExpectedResultsDto​(long endNodeId,
                                             long startNodeId,
                                             double linkFlow,
                                             double linkCost,
                                             double capacity,
                                             double length,
                                             double speed)
        Constructor
        Parameters:
        endNodeId - id of end node
        startNodeId - id of start node
        linkFlow - flow through link
        linkCost - cost (travel time) of link
        capacity - capacity of the link (no lanes x capacity per lane)
        length - length of the link
        speed - travel speed of the link
    • Method Detail

      • getCapacity

        public double getCapacity()
        Returns the capacity of this link
        Returns:
        capacity of this link
      • setCapacity

        public void setCapacity​(double capacity)
        Sets the capacity of this link
        Parameters:
        capacity - the capacity of this link
      • getLength

        public double getLength()
        Returns the length of this link
        Returns:
        the length of this link
      • setLength

        public void setLength​(double length)
        Set the length of this link
        Parameters:
        length - the length of this link
      • getSpeed

        public double getSpeed()
        Return the travel speed for this link
        Returns:
        the travel speed for this link
      • setSpeed

        public void setSpeed​(double speed)
        Set the travel speed for this link
        Parameters:
        speed - the travel speed for this link
      • getStartNodeId

        public long getStartNodeId()
        Return the id of the start nonde
        Returns:
        id of start node
      • setStartNodeId

        public void setStartNodeId​(long startNodeId)
        Set the id of the end node
        Parameters:
        startNodeId - id of the start node
      • getEndNodeId

        public long getEndNodeId()
        Return the id of the end node
        Returns:
        id of the end node
      • setEndNodeId

        public void setEndNodeId​(long endNodeId)
        Set the id of the end node
        Parameters:
        endNodeId - id of the end node
      • getLinkFlow

        public double getLinkFlow()
        Return the flow through this link
        Returns:
        the flow through this link
      • setLinkFlow

        public void setLinkFlow​(double linkFlow)
        Set the flow through this link
        Parameters:
        linkFlow - the flow through this link
      • getLinkCost

        public double getLinkCost()
        Get the cost for the current link
        Returns:
        the cost for the current link
      • setLinkCost

        public void setLinkCost​(double linkCost)
        Set the cost for the current link
        Parameters:
        linkCost - the cost for the current link
      • equals

        public boolean equals​(LinkSegmentExpectedResultsDto other)
        Tests whether this ResultDto object is equal to another one
        Parameters:
        other - ResultDto which is being compared to this one
        Returns:
        true if all fields in the DTO objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Return the hashCode for this object
        Overrides:
        hashCode in class Object
        Returns:
        hashCode for this object