|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAContext
Provides access to the network analysis context.
The INAContext interface can be used to obtain references to the constellation of objects used during network analysis. This includes references to the NetworkDataset, NASolver, NAClasses, NATraversalResult, NALocator, and any extra objects that implement INAAgent.
Method Summary | |
---|---|
INamedSet |
getAgents()
The collection of agents associated with the analysis. |
INALocator |
getLocator()
The locator used for finding network locations for class items. |
INamedSet |
getNAClasses()
The collection of classes associated with the analysis. |
String |
getName()
The name of the analysis. |
INetworkDataset |
getNetworkDataset()
The associated network dataset. |
IName |
getNetworkDatasetName()
The associated network dataset name. |
INAResult |
getResult()
The result for the analysis. |
INASolver |
getSolver()
The function used for the analysis. |
ISpatialReference |
getSpatialReference()
The spatial reference of the analysis. |
Method Detail |
---|
String getName() throws IOException, AutomationException
Name returns the name of the NAContext that was specified when the NAContext was created via INASolver.CreateContext.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISpatialReference getSpatialReference() throws IOException, AutomationException
SpatialReference returns the spatial reference of the associated NetworkDataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INASolver getSolver() throws IOException, AutomationException
Solver returns an object that implements INASolver. This is generally the solver that created the NAContext.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INamedSet getAgents() throws IOException, AutomationException
Agents returns any custom agents that are attached to the NAContext. Agents are objects that implement INAAgent and perform additional behavior when the NAContext is updated and when the NATraversalResult is updated.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INAResult getResult() throws IOException, AutomationException
Result returns the NATraversalResult, which is the results of the network analysis.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INamedSet getNAClasses() throws IOException, AutomationException
NAClasses returns a NamedSet of the NAClasses (e.g. Stops, Barriers, Routes) that are contained within the NAContext.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INALocator getLocator() throws IOException, AutomationException
Locator returns the default NALocator for the NAClass.
The locator is used by the network analyst loading tools when it tries to locate NALocationObjects. You can set the Locator property on the INAContextEdit interface to change the default locator. You can also override the locator used if you call NAClassLoader programmatically.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkDataset getNetworkDataset() throws IOException, AutomationException
NetworkDataset returns the NetworkDataset that the NAContext is referencing.
The NetworkDataset is only available after the NAContext has been bound to a NetworkDataset using INAContextEdit::Bind.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IName getNetworkDatasetName() throws IOException, AutomationException
NetworkDatasetName returns a Name object to the NetworkDataset that the NAContext is referencing.
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 |