Package org.goplanit.utils.test
Class LinkSegmentExpectedResultsDto
- java.lang.Object
-
- org.goplanit.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 booleanequals(LinkSegmentExpectedResultsDto other)Tests whether this ResultDto object is equal to another onedoublegetCapacity()Returns the capacity of this linklonggetEndNodeId()Return the id of the end nodedoublegetLength()Returns the length of this linkdoublegetLinkCost()Get the cost for the current linkdoublegetLinkFlow()Return the flow through this linkdoublegetSpeed()Return the travel speed for this linklonggetStartNodeId()Return the id of the start nondeinthashCode()Return the hashCode for this objectvoidsetCapacity(double capacity)Sets the capacity of this linkvoidsetEndNodeId(long endNodeId)Set the id of the end nodevoidsetLength(double length)Set the length of this linkvoidsetLinkCost(double linkCost)Set the cost for the current linkvoidsetLinkFlow(double linkFlow)Set the flow through this linkvoidsetSpeed(double speed)Set the travel speed for this linkvoidsetStartNodeId(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
-
-