routing
Class Path

java.lang.Object
  extended by routing.Path

public class Path
extends java.lang.Object

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

goalPathEdges

private java.util.ArrayList<Edge> goalPathEdges
the edges in the route


goalPathPoints

private java.util.ArrayList<DecisionPoint> goalPathPoints
the decision points in the route


directionsComplexities

private java.util.ArrayList<DirectionComplexity> directionsComplexities
the directions for the path

Constructor Detail

Path

public Path(java.util.ArrayList<Edge> goalPathEdges,
            java.util.ArrayList<DecisionPoint> goalPathPoints)
Constructs a path.

Parameters:
goalPathEdges - - the edges in the path
goalPathPoints - - the decision points in the path
Method Detail

addDirectionComplexity

public void addDirectionComplexity(DirectionComplexity complexity)
Adds a direction to the path.

Parameters:
complexity - - the direction to add to the route description

getGoalPathEdges

public java.util.ArrayList<Edge> getGoalPathEdges()
Gets the edges in the route.


getGoalPathPoints

public java.util.ArrayList<DecisionPoint> getGoalPathPoints()
Gets the decision points in the route.


getDirectionComplexities

public java.util.ArrayList<DirectionComplexity> getDirectionComplexities()
Gets the route directions.