com.esri.core.tasks.ags.na
Class RoutingResult

java.lang.Object
  extended by com.esri.core.tasks.ags.na.NAResult
      extended by com.esri.core.tasks.ags.na.RoutingResult

public class RoutingResult
extends NAResult

Class containing the relevant information for the entire server response. This includes all routes, as well as the stops, point/polyline/polygon barriers, and messages returned by the server.

Since:
10.1.1

Field Summary
 
Fields inherited from class com.esri.core.tasks.ags.na.NAResult
messages, pointBarriers, polygonBarriers, polylineBarriers
 
Constructor Summary
RoutingResult()
          Empty Constructor
 
Method Summary
 boolean equals(Object obj)
           
static RoutingResult fromJson(org.codehaus.jackson.JsonParser parser)
          Creates a RoutingResult object from a json representation
 List<Route> getRoutes()
          Gets the list of routes returned by the server
 FeatureSet getStops()
          Gets the FeatureSet representing the stops used to perform routing
 int hashCode()
           
 
Methods inherited from class com.esri.core.tasks.ags.na.NAResult
getBarriers, getMessages, getPointBarriers, getPolygonBarriers, getPolylineBarriers
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingResult

public RoutingResult()
Empty Constructor

Since:
10.1.1
Method Detail

getRoutes

public List<Route> getRoutes()
Gets the list of routes returned by the server

Returns:
the list of routes returned by the server
Since:
10.1.1

getStops

public FeatureSet getStops()
Gets the FeatureSet representing the stops used to perform routing

Returns:
the stops used to perform routing
Since:
10.1.1

fromJson

public static RoutingResult fromJson(org.codehaus.jackson.JsonParser parser)
                              throws Exception
Creates a RoutingResult object from a json representation

Parameters:
parser - the parser containing the json
Returns:
RoutingResult the object created from the json
Throws:
Exception
Since:
10.1.1

hashCode

public int hashCode()
Overrides:
hashCode in class NAResult

equals

public boolean equals(Object obj)
Overrides:
equals in class NAResult


Copyright © 2012. All Rights Reserved.