|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.
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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public 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 IEngineNetworkAnalystEnvironment
IOException
- 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 IEngineNetworkAnalystEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetworkLayer getNetworkLayer(int index) throws IOException, AutomationException
getNetworkLayer
in interface IEngineNetworkAnalystEnvironment
index
- 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 IEngineNetworkAnalystEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentNetworkLayer(INetworkLayer layer) throws IOException, AutomationException
setCurrentNetworkLayer
in interface IEngineNetworkAnalystEnvironment
layer
- 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 IEngineNetworkAnalystEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setZoomToResultAfterSolve(boolean flag) throws IOException, AutomationException
setZoomToResultAfterSolve
in interface IEngineNetworkAnalystEnvironment
flag
- 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, esriNAMessageTypeNone (0) means you do not want to see any messages after solve and esriNAMessageTypeError + esriNAMessageTypeWarning (6) means you just want to see errors and warnings.
getShowAnalysisMessagesAfterSolve
in interface IEngineNetworkAnalystEnvironment
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowAnalysisMessagesAfterSolve(int messageTypes) throws IOException, AutomationException
setShowAnalysisMessagesAfterSolve
in interface IEngineNetworkAnalystEnvironment
messageTypes
- 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 IEngineNetworkAnalystHelper
pPoint
- 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 IEngineNetworkAnalystHelper
IOException
- 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 IEngineNetworkAnalystHelper
IOException
- 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 IEngineNetworkAnalystHelper
IOException
- 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 IEngineNetworkAnalystHelper2
pGeometry
- 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 IEngineNetworkAnalystHelper2
IOException
- 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 IEngineNetworkAnalystHelper2
pPoint
- 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 IEngineNetworkAnalystHelper2
pGeometry
- 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 IEngineNetworkAnalystHelper2
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.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 IConnectionPointContainer
ppEnum
- 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 IConnectionPointContainer
riid
- 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 IToolSelectedLayer
layerIndex
- 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 IToolSelectedLayer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IExtension
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startup(Object initializationData) throws IOException, AutomationException
startup
in interface IExtension
initializationData
- 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 IExtension
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 |