|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrouting.Path
public class Path
A path represents a route from one decision point to another. The path contains the decision points and edges traversed as well as directions describing the path.
Field Summary | |
---|---|
private java.util.ArrayList<DirectionComplexity> |
directionsComplexities
the directions for the path |
private java.util.ArrayList<Edge> |
goalPathEdges
the edges in the route |
private java.util.ArrayList<DecisionPoint> |
goalPathPoints
the decision points in the route |
Constructor Summary | |
---|---|
Path(java.util.ArrayList<Edge> goalPathEdges,
java.util.ArrayList<DecisionPoint> goalPathPoints)
Constructs a path. |
Method Summary | |
---|---|
void |
addDirectionComplexity(DirectionComplexity complexity)
Adds a direction to the path. |
java.util.ArrayList<DirectionComplexity> |
getDirectionComplexities()
Gets the route directions. |
java.util.ArrayList<Edge> |
getGoalPathEdges()
Gets the edges in the route. |
java.util.ArrayList<DecisionPoint> |
getGoalPathPoints()
Gets the decision points in the route. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.ArrayList<Edge> goalPathEdges
private java.util.ArrayList<DecisionPoint> goalPathPoints
private java.util.ArrayList<DirectionComplexity> directionsComplexities
Constructor Detail |
---|
public Path(java.util.ArrayList<Edge> goalPathEdges, java.util.ArrayList<DecisionPoint> goalPathPoints)
goalPathEdges
- - the edges in the pathgoalPathPoints
- - the decision points in the pathMethod Detail |
---|
public void addDirectionComplexity(DirectionComplexity complexity)
complexity
- - the direction to add to the route descriptionpublic java.util.ArrayList<Edge> getGoalPathEdges()
public java.util.ArrayList<DecisionPoint> getGoalPathPoints()
public java.util.ArrayList<DirectionComplexity> getDirectionComplexities()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |