|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.controls.EngineNetworkAnalystEnvironment
public class EngineNetworkAnalystEnvironment
A singleton object representing Engine Network Analyst environment.
The EngineNetworkAnalystEnvironment object is a singleton object (only one instance of the EngineNetworkAnalystEnvironment object is supported per thread) that manages the INetworkLayer objects and the NAWindow.
The EngineNetworkAnalystEnvironment object implements the IEngineNetworkAnalystEnvironment, IEngineNetworkAnalystEnvironmentEvents, and IEngineNetworkAnalystHelper interfaces. The members of these interfaces manage the collection of network layers, the current network layer, solving and getting directions.
| Field Summary |
|---|
| Fields inherited from interface com.esri.arcgis.system.IExtension |
|---|
IID, IID7f657ec9_dbf1_11d2_9f2f_00c04f6bc69e, xxDummy |
| Constructor Summary | |
|---|---|
EngineNetworkAnalystEnvironment()
Constructs a EngineNetworkAnalystEnvironment using ArcGIS Engine. |
|
EngineNetworkAnalystEnvironment(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. EngineNetworkAnalystEnvironment theEngineNetworkAnalystEnvironment = (EngineNetworkAnalystEnvironment) obj; |
|
| Method Summary | |
|---|---|
void |
addIEngineNetworkAnalystEnvironmentEventsListener(IEngineNetworkAnalystEnvironmentEvents theListener)
addIEngineNetworkAnalystEnvironmentEventsListener. |
void |
addNetworkLocation(IPoint pPoint,
String name)
Adds a network location to the NAWindow at the specified point. |
void |
addNetworkLocationEx(IGeometry pGeometry,
String name)
Adds a network location to the NAWindow at the specified geometry. |
void |
deleteAllNetworkLocations()
Delete all network locations of active category for active analysis. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
static String |
getClsid()
getClsid. |
INetworkLayer |
getCurrentNetworkLayer()
The current network layer. |
INAStreetDirectionsContainer |
getDirections()
Get directions after solving. |
int |
getLayerIndex()
The index of selected layer. |
String |
getName()
The name of the extension. |
IEngineNAWindow |
getNAWindow()
The network analysis window. |
INetworkLayer |
getNetworkLayer(int index)
The network layer by index. |
int |
getNetworkLayerCount()
The number of network layers. |
int |
getShowAnalysisMessagesAfterSolve()
The types of messages that are displayed after solving. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isCanAddNetworkLocation()
Indicates if a network location can be added to the NAWindow at the specified geometry. |
boolean |
isCanMoveNetworkLocation()
Indicates if the network location of the selected item in the NAWindow can be moevd to the specified geometry. |
boolean |
isZoomToResultAfterSolve()
Indicates if the window should zoom the map to show results after solving. |
void |
moveNetworkLocation(IPoint pPoint,
String name)
Moves the network location of the selected item in the NAWindow to the specified point. |
void |
moveNetworkLocationEx(IGeometry pGeometry,
String name)
Moves the network location of the selected item in the NAWindow to the specified geometry. |
void |
removeIEngineNetworkAnalystEnvironmentEventsListener(IEngineNetworkAnalystEnvironmentEvents theListener)
removeIEngineNetworkAnalystEnvironmentEventsListener. |
void |
setCurrentNetworkLayer(INetworkLayer layer)
The current network layer. |
void |
setLayerIndex(int layerIndex)
The index of selected layer. |
void |
setShowAnalysisMessagesAfterSolve(int messageTypes)
The types of messages that are displayed after solving. |
void |
setZoomToResultAfterSolve(boolean flag)
Indicates if the window should zoom the map to show results after solving. |
void |
shutdown()
Shuts down the extension. |
void |
solve()
Solve for current network locations. |
void |
startup(Object initializationData)
Starts up the extension with the given initialization data. |
| 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 EngineNetworkAnalystEnvironment()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public EngineNetworkAnalystEnvironment(Object obj)
throws IOException
EngineNetworkAnalystEnvironment theEngineNetworkAnalystEnvironment = (EngineNetworkAnalystEnvironment) obj;
obj to EngineNetworkAnalystEnvironment.
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 void addIEngineNetworkAnalystEnvironmentEventsListener(IEngineNetworkAnalystEnvironmentEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.controls.IEngineNetworkAnalystEnvironmentEvents interface.
IOException - If there are communications problems.
public void removeIEngineNetworkAnalystEnvironmentEventsListener(IEngineNetworkAnalystEnvironmentEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.controls.IEngineNetworkAnalystEnvironmentEvents interface.
IOException - If there are communications problems.
public IEngineNAWindow getNAWindow()
throws IOException,
AutomationException
Returns the Engine Network Analyst Window.
getNAWindow in interface IEngineNetworkAnalystEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getNetworkLayerCount()
throws IOException,
AutomationException
Returns the number of INetworkLayer objects referencing NetworkDataset objects in the map.
getNetworkLayerCount in interface IEngineNetworkAnalystEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetworkLayer getNetworkLayer(int index)
throws IOException,
AutomationException
getNetworkLayer in interface IEngineNetworkAnalystEnvironmentindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetworkLayer getCurrentNetworkLayer()
throws IOException,
AutomationException
The currently selected INetworkLayer object.
getCurrentNetworkLayer in interface IEngineNetworkAnalystEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentNetworkLayer(INetworkLayer layer)
throws IOException,
AutomationException
setCurrentNetworkLayer in interface IEngineNetworkAnalystEnvironmentlayer - A reference to a com.esri.arcgis.carto.INetworkLayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isZoomToResultAfterSolve()
throws IOException,
AutomationException
Indicates if the display will automatically zoom to the extent of the analysis results once the network analysis is complete. By deafult this property is false.
isZoomToResultAfterSolve in interface IEngineNetworkAnalystEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZoomToResultAfterSolve(boolean flag)
throws IOException,
AutomationException
setZoomToResultAfterSolve in interface IEngineNetworkAnalystEnvironmentflag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getShowAnalysisMessagesAfterSolve()
throws IOException,
AutomationException
The type of messages displayed when a solve completes.
For example, esriEngineNAMessageTypeNone (0) means you do not want to see any messages after solve and esriEngineNAMessageTypeError + esriEngineNAMessageTypeWarning (6) means you just want to see errors and warnings.
getShowAnalysisMessagesAfterSolve in interface IEngineNetworkAnalystEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowAnalysisMessagesAfterSolve(int messageTypes)
throws IOException,
AutomationException
setShowAnalysisMessagesAfterSolve in interface IEngineNetworkAnalystEnvironmentmessageTypes - The messageTypes (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addNetworkLocation(IPoint pPoint,
String name)
throws IOException,
AutomationException
Adds the specified point to the IEngineNAWindow::ActiveCategory of the IEngineNAWindow::ActiveAnalysis layer as a network location.
addNetworkLocation in interface IEngineNetworkAnalystHelperpPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteAllNetworkLocations()
throws IOException,
AutomationException
Deletes all network locations in the IEngineNAWindow::ActiveCategory of the IEngineNAWindow::ActiveAnalysis layer.
deleteAllNetworkLocations in interface IEngineNetworkAnalystHelperIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAStreetDirectionsContainer getDirections()
throws IOException,
AutomationException
Use the GetDirections method after using the Solve method to return directions contents in XML format. Using GetDirections before the Solve method will return nothing.
getDirections in interface IEngineNetworkAnalystHelperIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void solve()
throws IOException,
AutomationException
Solve performs network analysis based upon the IEngineNAWindow::ActiveAnalysis layer and the NAContext.
solve in interface IEngineNetworkAnalystHelperIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addNetworkLocationEx(IGeometry pGeometry,
String name)
throws IOException,
AutomationException
addNetworkLocationEx in interface IEngineNetworkAnalystHelper2pGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanAddNetworkLocation()
throws IOException,
AutomationException
isCanAddNetworkLocation in interface IEngineNetworkAnalystHelper2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void moveNetworkLocation(IPoint pPoint,
String name)
throws IOException,
AutomationException
moveNetworkLocation in interface IEngineNetworkAnalystHelper2pPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void moveNetworkLocationEx(IGeometry pGeometry,
String name)
throws IOException,
AutomationException
moveNetworkLocationEx in interface IEngineNetworkAnalystHelper2pGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanMoveNetworkLocation()
throws IOException,
AutomationException
isCanMoveNetworkLocation in interface IEngineNetworkAnalystHelper2IOException - 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.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface IConnectionPointContainerriid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLayerIndex(int layerIndex)
throws IOException,
AutomationException
setLayerIndex in interface IToolSelectedLayerlayerIndex - The layerIndex (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLayerIndex()
throws IOException,
AutomationException
The index of the currently 'selected' layer that the Command operates with.
getLayerIndex in interface IToolSelectedLayerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface IExtensionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void startup(Object initializationData)
throws IOException,
AutomationException
startup in interface IExtensioninitializationData - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void shutdown()
throws IOException,
AutomationException
shutdown in interface IExtensionIOException - 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 | ||||||||