routing
Class Edge

java.lang.Object
  extended by routing.Edge

public class Edge
extends java.lang.Object


Field Summary
private  java.util.ArrayList<java.lang.Double> coordinates
           
private  long id
           
private  double length
           
private  DecisionPoint point1
           
private  DecisionPoint point2
           
 
Constructor Summary
Edge(long id, java.util.ArrayList<java.lang.Double> coordinates, DecisionPoint point1, DecisionPoint point2, double length)
           
 
Method Summary
 java.util.List<java.lang.Double> getCoordinates()
           
 DecisionPoint getDecisionPoint1()
           
 DecisionPoint getDecisionPoint2()
           
 long getId()
           
 double getLength()
           
 DecisionPoint getOtherPoint(DecisionPoint point)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private long id

coordinates

private java.util.ArrayList<java.lang.Double> coordinates

point1

private DecisionPoint point1

point2

private DecisionPoint point2

length

private double length
Constructor Detail

Edge

public Edge(long id,
            java.util.ArrayList<java.lang.Double> coordinates,
            DecisionPoint point1,
            DecisionPoint point2,
            double length)
Parameters:
coordinates -
decisionPoint1 -
decisionPoint2 -
totalEdgeLength -
Method Detail

getId

public long getId()
Returns:
Returns the id.

getCoordinates

public java.util.List<java.lang.Double> getCoordinates()
Returns:
Returns the coordinates.

getDecisionPoint1

public DecisionPoint getDecisionPoint1()
Returns:
Returns the decisionPoint1.

getDecisionPoint2

public DecisionPoint getDecisionPoint2()
Returns:
Returns the decisionPoint2.

getOtherPoint

public DecisionPoint getOtherPoint(DecisionPoint point)

getLength

public double getLength()
Returns:
Returns the totalEdgeLength.