routing
Class DirectionComplexity

java.lang.Object
  extended by routing.DirectionComplexity

public class DirectionComplexity
extends java.lang.Object

Class for storing an individual direction along a route.


Field Summary
private  double directionsComplexity
          The complexity of the directions associated with this route: 0 - low complexiy 1 - high complexity
private  java.lang.String message
          The message containing the directions
private  double xCoord
          the X coordinate of the directon
private  double yCoord
          the Y coordinate of the directon
 
Constructor Summary
DirectionComplexity(double coord, double coord2, double complexity, java.lang.String message)
          Constructs a direction with the specified complexity.
 
Method Summary
 double getDirectionsComplexity()
          Gets the complexity rating of the directions.
 java.lang.String getMessage()
          Gets the directions.
 double getXCoord()
          Gets the X coordinate.
 double getYCoord()
          Gets the Y coordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xCoord

private double xCoord
the X coordinate of the directon


yCoord

private double yCoord
the Y coordinate of the directon


directionsComplexity

private double directionsComplexity
The complexity of the directions associated with this route: 0 - low complexiy 1 - high complexity


message

private java.lang.String message
The message containing the directions

Constructor Detail

DirectionComplexity

public DirectionComplexity(double coord,
                           double coord2,
                           double complexity,
                           java.lang.String message)
Constructs a direction with the specified complexity.

Parameters:
coord - - the X coordinate
coord2 - - the Y coordinate
complexity - - the direction complexity
message - - the message containing the directions
Method Detail

getDirectionsComplexity

public double getDirectionsComplexity()
Gets the complexity rating of the directions.


getXCoord

public double getXCoord()
Gets the X coordinate.


getYCoord

public double getYCoord()
Gets the Y coordinate.


getMessage

public java.lang.String getMessage()
Gets the directions.