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

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

public class ClosestFacilityResult
extends NAResult

Class containing the relevant information for the entire server response. This includes all routes, as well as the facilities, incidents, 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
ClosestFacilityResult()
           
 
Method Summary
 boolean equals(Object obj)
           
static ClosestFacilityResult fromJson(org.codehaus.jackson.JsonParser parser)
          Creates a ClosestFacilityResult object from a json representation
 FeatureSet getFacilities()
          Gets the FeatureSet representing the facilities used to calculate the closest facility
 FeatureSet getIncidents()
          Gets the FeatureSet representing the incidents from which to calculate the closest facility
 List<Route> getRoutes()
          Gets the list of routes returned by the server
 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

ClosestFacilityResult

public ClosestFacilityResult()
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

getFacilities

public FeatureSet getFacilities()
Gets the FeatureSet representing the facilities used to calculate the closest facility

Returns:
the facilities used to calculate the closest facility
Since:
10.1.1

getIncidents

public FeatureSet getIncidents()
Gets the FeatureSet representing the incidents from which to calculate the closest facility

Returns:
the incidents from which to calculate the closest facility
Since:
10.1.1

fromJson

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

Parameters:
parser - the parser containing the json
Returns:
ClosestFacilityResult 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.