public class

ClosestFacilityTask

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.ags.na.ClosestFacilityTask

Class Overview

Class executing a service area task on the server.

Summary

Public Constructors
ClosestFacilityTask(String url)
Instantiates a new service area task.
ClosestFacilityTask(String url, UserCredentials credentials)
Instantiates a new service area task.
Public Methods
ClosestFacilityParameters getDefaultParameters()
Retrieves the default parameters as defined by the service layer.
ClosestFacilityResult solve(ClosestFacilityParameters cfp)
Execute the ClosestFacilityParameters defined for this ClosestFacilityTask and returns a ClosestFacilityResult containing the results.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ClosestFacilityTask (String url)

Instantiates a new service area task.

Parameters
url the URL

public ClosestFacilityTask (String url, UserCredentials credentials)

Instantiates a new service area task.

Parameters
url the url
credentials the user credentials

Public Methods

public ClosestFacilityParameters getDefaultParameters ()

Retrieves the default parameters as defined by the service layer.

Returns
  • ClosestFacilityParameters the server-default parameters
Throws
Exception the exception

public ClosestFacilityResult solve (ClosestFacilityParameters cfp)

Execute the ClosestFacilityParameters defined for this ClosestFacilityTask and returns a ClosestFacilityResult containing the results.

Parameters
cfp the parameters
Returns
Throws
Exception the exception