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 Nodedestinationprivate RoadInformationinfoprivate floatlengthprivate Nodeoriginprivate java.util.List<Point>points
-
Constructor Summary
Constructors Modifier Constructor Description protectedArcForward(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 NodegetDestination()floatgetLength()NodegetOrigin()java.util.List<Point>getPoints()RoadInformationgetRoadInformation()-
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:
getDestinationin classArc- Returns:
- Destination node of this arc.
-
getLength
public float getLength()
-
getRoadInformation
public RoadInformation getRoadInformation()
- Specified by:
getRoadInformationin classArc- Returns:
- Road information for this arc.
-
-