|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.networkanalyst.NAServer
public class NAServer
A MapServer object extension for performing network analysis within a stateless environment.
The NAServer is a MapServer object extension that can be used to perform network analysis in a stateless environment using ArcGIS Server.
| Field Summary |
|---|
| Fields inherited from interface com.esri.arcgis.system.IObjectActivate |
|---|
IID, IIDe3b78022_143e_4e61_9099_ed319ec061e7, xxDummy |
| Constructor Summary | |
|---|---|
NAServer()
Constructs a NAServer using ArcGIS Engine. |
|
NAServer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NAServer theNAServer = (NAServer) obj; |
|
| Method Summary | |
|---|---|
void |
activate()
Activates the object. |
void |
construct(IPropertySet props)
Two phase object construction. |
void |
deactivate()
Deactivates the object. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String[] |
getNALayerNames(int layerType)
Array of network analysis layers of a particular analysis type. |
INAServerNetworkDescription |
getNetworkDescription(String nALayerName)
Network Dataset DataElement. |
INAServerSolverParams |
getSolverParameters(String nALayerName)
Default solver parameters for the specified network analysis layer. |
byte[] |
handleBinaryRequest(byte[] request)
Handles a binary request. |
byte[] |
handleBinaryRequest2(String capabilities,
byte[] request)
Handles a binary request with explicit capabilities. |
String |
handleStringRequest(String capabilities,
String request)
Handles a SOAP string request. |
int |
hashCode()
the hashcode for this object |
void |
init(IServerObjectHelper pSOH)
Initializes and starts the server object specified by the IServerObjectHelper reference. |
void |
initLogging(ILog log)
Initializes an object with a log. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
shutdown()
Stops the server object specified by the IServerObjectHelper reference. |
INAServerSolverResults |
solve(INAServerSolverParams nAServerSolverParams)
Perform network analysis based on the input solve parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public NAServer()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NAServer(Object obj)
throws IOException
NAServer theNAServer = (NAServer) obj;
obj to NAServer.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String[] getNALayerNames(int layerType)
throws IOException,
AutomationException
GetNALayerNames returns an array of names of NALayers of a given type. For example, you could use this method to find the names of all of the route analysis layers in the default map of the map server.
getNALayerNames in interface INAServerlayerType - A com.esri.arcgis.networkanalyst.esriNAServerLayerType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAServerNetworkDescription getNetworkDescription(String nALayerName)
throws IOException,
AutomationException
GetNetworkDescription returns an NAServerNetworkDescription object that allows you to retrieve things like the name of the network dataset as well as the sources and attributes within the network dataset.
getNetworkDescription in interface INAServernALayerName - The nALayerName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAServerSolverParams getSolverParameters(String nALayerName)
throws IOException,
AutomationException
GetSolverParameters returns the NAServerSolverParams object (NAServerRouteParams, NAServerClosestFacilityParams, NAServerServiceAreaParams) corresponding to the NALayer name passed in. The parameter object returned will have defaults based on the NALayer it is referencing.
You can pass this resulting object into the Solve method on INAServer to perform network analysis.
getSolverParameters in interface INAServernALayerName - The nALayerName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAServerSolverResults solve(INAServerSolverParams nAServerSolverParams)
throws IOException,
AutomationException
Solve performs network analysis based on the NAServerSolverParams object (NAServerRouteParams, NAServerClosestFacilityParams, NAServerServiceAreaParams) that was passed in and returns it's output through an NAServerSolverResults object (NAServerRouteResults, NAServerClosestFacilityResults, NAServerServiceAreaParams).
solve in interface INAServernAServerSolverParams - A reference to a com.esri.arcgis.networkanalyst.INAServerSolverParams (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void init(IServerObjectHelper pSOH)
throws IOException,
AutomationException
init in interface IServerObjectExtensionpSOH - A reference to a com.esri.arcgis.server.IServerObjectHelper (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void shutdown()
throws IOException,
AutomationException
shutdown in interface IServerObjectExtensionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void initLogging(ILog log)
throws IOException,
AutomationException
initLogging in interface ILogSupportlog - A reference to a com.esri.arcgis.system.ILog (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void activate()
throws IOException,
AutomationException
activate in interface IObjectActivateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deactivate()
throws IOException,
AutomationException
deactivate in interface IObjectActivateIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void construct(IPropertySet props)
throws IOException,
AutomationException
construct in interface IObjectConstructprops - A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public byte[] handleBinaryRequest(byte[] request)
throws IOException,
AutomationException
handleBinaryRequest in interface IRequestHandlerrequest - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String handleStringRequest(String capabilities,
String request)
throws IOException,
AutomationException
handleStringRequest in interface IRequestHandlercapabilities - The capabilities (in)request - The request (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public byte[] handleBinaryRequest2(String capabilities,
byte[] request)
throws IOException,
AutomationException
handleBinaryRequest2 in interface IRequestHandler2capabilities - The capabilities (in)request - An unsigned byte (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||