com.esri.adf.web.ags.data
Class AGSDirection

java.lang.Object
  extended by com.esri.adf.web.ags.data.AGSDirection
All Implemented Interfaces:
Serializable

public class AGSDirection
extends Object
implements Serializable

This object stores the direction results.

See Also:
Serialized Form

Constructor Summary
AGSDirection(double cumulativeLength, double length, double drivingTime, double time, WebExtent extent, WebPoint point, String directionText, Map<String,String> directionString)
          Initializes the AGSDirection object from the traversal result.
 
Method Summary
 void doZoomTo()
          Zoom to the direction.
 double getCumulativeLength()
           
 Map<String,String> getDirectionString()
           
 String getDirectionText()
           
 double getDrivingLength()
           
 double getDrivingTime()
           
 WebExtent getExtent()
          Returns the extent of the direction.
 WebPoint getPoint()
          Returns the maneuver point of the direction.
 double getTime()
           
 void setCumulativeLength(double cumulativeLength)
           
 void setDirectionString(Map<String,String> directionString)
           
 void setDirectionText(String directionText)
           
 void setDrivingLength(double drivingLength)
           
 void setDrivingTime(double drivingTime)
           
 void setExtent(WebExtent extent)
          Sets the extent of the direction.
 void setPoint(WebPoint point)
          Sets the maneuver point of the direction.
 void setTime(double time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGSDirection

public AGSDirection(double cumulativeLength,
                    double length,
                    double drivingTime,
                    double time,
                    WebExtent extent,
                    WebPoint point,
                    String directionText,
                    Map<String,String> directionString)
Initializes the AGSDirection object from the traversal result.

Parameters:
cumulativeLength - the cumulative length of direction
length - the length of direction
drivingTime - the driving time of direction
time - the time of direction
extent - the bounding box of the direction
point - the maneuver point of the direction
directionText - the direction text
directionString - the string representation of direction
Method Detail

getCumulativeLength

public double getCumulativeLength()

getDrivingLength

public double getDrivingLength()

getDrivingTime

public double getDrivingTime()

getTime

public double getTime()

getExtent

public WebExtent getExtent()
Returns the extent of the direction.

Returns:
WebExtent- the extent of the direction

getPoint

public WebPoint getPoint()
Returns the maneuver point of the direction.

Returns:
WebPoint- the point of the direction

getDirectionString

public Map<String,String> getDirectionString()

getDirectionText

public String getDirectionText()

setCumulativeLength

public void setCumulativeLength(double cumulativeLength)

setDrivingTime

public void setDrivingTime(double drivingTime)

setTime

public void setTime(double time)

setDrivingLength

public void setDrivingLength(double drivingLength)

setExtent

public void setExtent(WebExtent extent)
Sets the extent of the direction.

Parameters:
extent - the extent of the direction

setPoint

public void setPoint(WebPoint point)
Sets the maneuver point of the direction.

Parameters:
point - the maneuver point of the direction

setDirectionString

public void setDirectionString(Map<String,String> directionString)

setDirectionText

public void setDirectionText(String directionText)

doZoomTo

public void doZoomTo()
Zoom to the direction.