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 Arc
originalArc
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArcBackward(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 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
-
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:
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.
-
-