|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.networkanalyst.NAServerIP
public class NAServerIP
Deprecated as of 10.0. NAServer Proxy for IP Messages.
NAServerIP is used by GISClient to access the NAServer MapServer object extension to perform network analysis in a stateless environment over the internet.
Constructor Summary | |
---|---|
NAServerIP()
Constructs a NAServerIP using ArcGIS Engine. |
|
NAServerIP(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NAServerIP theNAServerIP = (NAServerIP) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IName |
getFullName()
The AGSServerConnectionName object associated with the server object. |
int |
getHttpTimeout()
The maximum time in seconds to wait for a response from the server (Internet only). |
String[] |
getNALayerNames(int layerType)
Array of network analysis layers of a particular analysis type. |
INAServerNetworkDescription |
getNetworkDescription(String nALayerName)
Description of the network dataset associated with the specified network analysis layer. |
INAServerSolverParams |
getSolverParameters(String nALayerName)
Default solver parameters for the specified network analysis layer. |
INAServerSolverParams |
getSolverParameters2(String nALayerName,
String layerToken,
boolean populateNAClasses)
Default solver parameters for the specified network analysis layer. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
setHttpTimeout(int secs)
The maximum time in seconds to wait for a response from the server (Internet only). |
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 NAServerIP() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic NAServerIP(Object obj) throws IOException
NAServerIP theNAServerIP = (NAServerIP) obj;
obj
to NAServerIP
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IName getFullName() throws IOException, AutomationException
getFullName
in interface IAGSServerObject2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHttpTimeout(int secs) throws IOException, AutomationException
setHttpTimeout
in interface IAGSServerObject2
secs
- The secs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHttpTimeout() throws IOException, AutomationException
getHttpTimeout
in interface IAGSServerObject2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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 INAServer
layerType
- 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 INAServer
nALayerName
- 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, NAServerLocationAllocationParams, NAServerODCostMatrixParams, NAServerVRPParams) 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 NAServer to perform network analysis.
getSolverParameters
in interface INAServer
nALayerName
- 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 INAServer
nAServerSolverParams
- 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 INAServerSolverParams getSolverParameters2(String nALayerName, String layerToken, boolean populateNAClasses) throws IOException, AutomationException
GetSolverParameters2 returns the NAServerSolverParams object (NAServerRouteParams, NAServerClosestFacilityParams, NAServerServiceAreaParams, NAServerLocationAllocationParams, NAServerODCostMatrixParams, NAServerVRPParams) corresponding to the NALayerName and LayerToken passed in. if PopulateNAClasses was set to True, returned NAServerSolverParams instance will contain correspondent recordsets populated with content of NAClasses.
As opposed to GetSolverParameters, NAServerSolverParams instance returned by GetSolverParameters2 does not contain MapDescription and ImageDescription populated, which significantly reduces response size.
You can pass this resulting object into the Solve method on NAServer to perform network analysis.
LayerToken can be obtained from NAServerSolverResults object if the instance of NAServerSolverParams previously passed to the Solve method had SaveLayerOnServer set to True.
This method can be useful when, for example, multiple clients are working with a shared network analysis layer stored on server, or shared layer originally was created and saved on server by another client process.
getSolverParameters2
in interface INAServer2
nALayerName
- The nALayerName (in)layerToken
- The layerToken (in)populateNAClasses
- The populateNAClasses (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 ISupportErrorInfo
riid
- 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 |