Package org.insa.graphs.model
Class ArcBackward
- java.lang.Object
-
- org.insa.graphs.model.Arc
-
- org.insa.graphs.model.ArcBackward
-
class ArcBackward extends Arc
Implementation of Arc that represents a "backward" arc in a graph, i.e., an arc that is the reverse of another one. This arc only holds a reference to the original arc.
-
-
Field Summary
Fields Modifier and Type Field Description private ArcoriginalArc
-
Constructor Summary
Constructors Modifier Constructor Description protectedArcBackward(Arc originalArc)Create a new backward arc which corresponds to the reverse arc of the given arc.
-
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
-
originalArc
private final Arc originalArc
-
-
Constructor Detail
-
ArcBackward
protected ArcBackward(Arc originalArc)
Create a new backward arc which corresponds to the reverse arc of the given arc.- Parameters:
originalArc- Original forwarc arc corresponding to this backward 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.
-
-