|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.controls.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 process) that manages the INetworkLayer objects and the NAWindow.
| Constructor Summary | |
EngineNetworkAnalystEnvironment()
Constructs a EngineNetworkAnalystEnvironment using ArcGIS Engine. |
|
EngineNetworkAnalystEnvironment(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
void |
addIEngineNetworkAnalystEnvironmentEventsListener(IEngineNetworkAnalystEnvironmentEvents theListener)
|
void |
addNetworkLocation(IPoint pPoint,
java.lang.String name)
Add a named point as a network location. |
void |
deleteAllNetworkLocations()
Delete all network locations of active category for active analysis. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
Supported Platforms |
boolean |
equals(java.lang.Object o)
Compare this object with another |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
Supported Platforms |
IConnectionPointContainer |
getAsIConnectionPointContainer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IEngineNetworkAnalystEnvironment |
getAsIEngineNetworkAnalystEnvironment()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IEngineNetworkAnalystHelper |
getAsIEngineNetworkAnalystHelper()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ISupportErrorInfo |
getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IToolSelectedLayer |
getAsIToolSelectedLayer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
static java.lang.String |
getClsid()
|
INetworkLayer |
getCurrentNetworkLayer()
The current network layer. |
INAStreetDirectionsContainer |
getDirections()
Get directions after solving. |
int |
getLayerIndex()
The index of selected layer. |
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)
Supported Platforms |
boolean |
isZoomToResultAfterSolve()
Indicates if the window should zoom the map to show results after solving. |
void |
removeIEngineNetworkAnalystEnvironmentEventsListener(IEngineNetworkAnalystEnvironmentEvents theListener)
|
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 |
solve()
Solve for current network locations. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EngineNetworkAnalystEnvironment()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public EngineNetworkAnalystEnvironment(java.lang.Object obj)
throws java.io.IOException
obj to EngineNetworkAnalystEnvironment. EngineNetworkAnalystEnvironment theEngineNetworkAnalystEnvironment = (EngineNetworkAnalystEnvironment) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IEngineNetworkAnalystEnvironment getAsIEngineNetworkAnalystEnvironment()
public IEngineNetworkAnalystHelper getAsIEngineNetworkAnalystHelper()
public ISupportErrorInfo getAsISupportErrorInfo()
public IConnectionPointContainer getAsIConnectionPointContainer()
public IToolSelectedLayer getAsIToolSelectedLayer()
public boolean equals(java.lang.Object o)
public int hashCode()
public void addIEngineNetworkAnalystEnvironmentEventsListener(IEngineNetworkAnalystEnvironmentEvents theListener)
throws java.io.IOException
java.io.IOException
public void removeIEngineNetworkAnalystEnvironmentEventsListener(IEngineNetworkAnalystEnvironmentEvents theListener)
throws java.io.IOException
java.io.IOException
public IEngineNAWindow getNAWindow()
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironmentReturns the Engine Network Analyst Window.
getNAWindow in interface IEngineNetworkAnalystEnvironmentAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getNetworkLayerCount()
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironmentReturns the number of INetworkLayer objects referencing NetworkDataset objects in the map.
getNetworkLayerCount in interface IEngineNetworkAnalystEnvironmentjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetworkLayer getNetworkLayer(int index)
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironmentReturns the INetworkLayer object referencing a NetworkDataset at the specified index in the range 0 to NetworkLayerCount - 1.
getNetworkLayer in interface IEngineNetworkAnalystEnvironmentindex - The index (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetworkLayer getCurrentNetworkLayer()
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironmentThe currently selected INetworkLayer object.
getCurrentNetworkLayer in interface IEngineNetworkAnalystEnvironmentAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setCurrentNetworkLayer(INetworkLayer layer)
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironment
setCurrentNetworkLayer in interface IEngineNetworkAnalystEnvironmentlayer - A reference to a com.esri.arcgis.carto.INetworkLayer (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isZoomToResultAfterSolve()
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironmentIndicates 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 IEngineNetworkAnalystEnvironmentAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setZoomToResultAfterSolve(boolean flag)
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironment
setZoomToResultAfterSolve in interface IEngineNetworkAnalystEnvironmentflag - The flag (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getShowAnalysisMessagesAfterSolve()
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironmentThe 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 IEngineNetworkAnalystEnvironmentAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setShowAnalysisMessagesAfterSolve(int messageTypes)
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystEnvironment
setShowAnalysisMessagesAfterSolve in interface IEngineNetworkAnalystEnvironmentmessageTypes - The messageTypes (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addNetworkLocation(IPoint pPoint,
java.lang.String name)
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystHelperAdds 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void deleteAllNetworkLocations()
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystHelperDeletes all network locations in the IEngineNAWindow::ActiveCategory of the IEngineNAWindow::ActiveAnalysis layer.
deleteAllNetworkLocations in interface IEngineNetworkAnalystHelperAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public INAStreetDirectionsContainer getDirections()
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystHelperUse 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 IEngineNetworkAnalystHelperAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void solve()
throws java.io.IOException,
AutomationException
IEngineNetworkAnalystHelperSolve performs network analysis based upon the IEngineNAWindow::ActiveAnalysis layer and the NAContext.
solve in interface IEngineNetworkAnalystHelperjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws java.io.IOException,
AutomationException
ISupportErrorInfoIndicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws java.io.IOException,
AutomationException
IConnectionPointContainerIConnectionPointContainer 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws java.io.IOException,
AutomationException
IConnectionPointContainerIConnectionPointContainer 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setLayerIndex(int layerIndex)
throws java.io.IOException,
AutomationException
IToolSelectedLayer
setLayerIndex in interface IToolSelectedLayerlayerIndex - The layerIndex (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getLayerIndex()
throws java.io.IOException,
AutomationException
IToolSelectedLayerThe index of the currently 'selected' layer that the Command operates with.
getLayerIndex in interface IToolSelectedLayerAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||