Package org.planit.utils.test
Class LinkSegmentExpectedResultsDto
- java.lang.Object
-
- org.planit.utils.test.LinkSegmentExpectedResultsDto
-
public class LinkSegmentExpectedResultsDto extends Object
DTO object containing extra fields specific to BPR function The first- Author:
- gman6028
-
-
Constructor Summary
Constructors Constructor Description LinkSegmentExpectedResultsDto(long endNodeId, long startNodeId, double linkFlow, double linkCost, double capacity, double length, double speed)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(LinkSegmentExpectedResultsDto other)
Tests whether this ResultDto object is equal to another onedouble
getCapacity()
Returns the capacity of this linklong
getEndNodeId()
Return the id of the end nodedouble
getLength()
Returns the length of this linkdouble
getLinkCost()
Get the cost for the current linkdouble
getLinkFlow()
Return the flow through this linkdouble
getSpeed()
Return the travel speed for this linklong
getStartNodeId()
Return the id of the start nondeint
hashCode()
Return the hashCode for this objectvoid
setCapacity(double capacity)
Sets the capacity of this linkvoid
setEndNodeId(long endNodeId)
Set the id of the end nodevoid
setLength(double length)
Set the length of this linkvoid
setLinkCost(double linkCost)
Set the cost for the current linkvoid
setLinkFlow(double linkFlow)
Set the flow through this linkvoid
setSpeed(double speed)
Set the travel speed for this linkvoid
setStartNodeId(long startNodeId)
Set the id of the end node
-
-
-
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 nodestartNodeId
- id of start nodelinkFlow
- flow through linklinkCost
- cost (travel time) of linkcapacity
- capacity of the link (no lanes x capacity per lane)length
- length of the linkspeed
- 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
-
-