Package org.insa.graphs.model
Class ArcForward
- java.lang.Object
-
- org.insa.graphs.model.Arc
-
- org.insa.graphs.model.ArcForward
-
class ArcForward extends Arc
Implementation of Arc that represents a "forward" arc in a graph, this is the arc implementation that stores data relative to the arc.
-
-
Field Summary
Fields Modifier and Type Field Description private Node
destination
private RoadInformation
info
private float
length
private Node
origin
private java.util.List<Point>
points
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArcForward(Node origin, Node dest, float length, RoadInformation roadInformation, java.util.List<Point> points)
Create a new ArcForward with the given attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
getDestination()
float
getLength()
Node
getOrigin()
java.util.List<Point>
getPoints()
RoadInformation
getRoadInformation()
-
Methods inherited from class org.insa.graphs.model.Arc
getMinimumTravelTime, getTravelTime
-
-
-
-
Field Detail
-
origin
private final Node origin
-
destination
private final Node destination
-
length
private final float length
-
info
private final RoadInformation info
-
points
private final java.util.List<Point> points
-
-
Constructor Detail
-
ArcForward
protected ArcForward(Node origin, Node dest, float length, RoadInformation roadInformation, java.util.List<Point> points)
Create a new ArcForward with the given attributes.- Parameters:
origin
- Origin of this arc.dest
- Destination of this arc.length
- Length of this arc (in meters).roadInformation
- Road information for this arc.points
- Points representing this arc.
-
-
Method Detail
-
getOrigin
public Node getOrigin()
-
getDestination
public Node getDestination()
- Specified by:
getDestination
in classArc
- Returns:
- Destination node of this arc.
-
getLength
public float getLength()
-
getRoadInformation
public RoadInformation getRoadInformation()
- Specified by:
getRoadInformation
in classArc
- Returns:
- Road information for this arc.
-
-