|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrouting.DirectionComplexity
public class DirectionComplexity
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 |
---|
private double xCoord
private double yCoord
private double directionsComplexity
private java.lang.String message
Constructor Detail |
---|
public DirectionComplexity(double coord, double coord2, double complexity, java.lang.String message)
coord
- - the X coordinatecoord2
- - the Y coordinatecomplexity
- - the direction complexitymessage
- - the message containing the directionsMethod Detail |
---|
public double getDirectionsComplexity()
public double getXCoord()
public double getYCoord()
public java.lang.String getMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |