com.esri.arcgis.networkanalyst
Interface INAContextEvents

All Superinterfaces:
EventListener, Serializable
All Known Implementing Classes:
INAContextEventsAdapter, INAContextEventsProxy

public interface INAContextEvents
extends EventListener, Serializable

Provides access to events triggered by the network analysis context.

Remarks

The INAContextEvents interface is an outgoing interface that notifies clients when the NAContext or the NATraversalResult is modified.

OnNAContextUpdated is raised in response to ContextChanged being called on INAContextEdit. OnNAResultUpdated is raised in response to ResultChanged being called on INAContextEdit.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void onNAContextUpdated(INAContextEventsOnNAContextUpdatedEvent theEvent)
          Called when the network analysis context is updated.
 void onNAResultUpdated(INAContextEventsOnNAResultUpdatedEvent theEvent)
          Called when the network analysis result is updated.
 

Method Detail

onNAContextUpdated

void onNAContextUpdated(INAContextEventsOnNAContextUpdatedEvent theEvent)
                        throws IOException,
                               AutomationException
Called when the network analysis context is updated.

Remarks

OnNAContextUpdated is raised in response to ContextChanged being called on INAContextEdit. For example, this occurs when new NALocationFeatures are added to an NAClass.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onNAResultUpdated

void onNAResultUpdated(INAContextEventsOnNAResultUpdatedEvent theEvent)
                       throws IOException,
                              AutomationException
Called when the network analysis result is updated.

Remarks

OnNAResultUpdated is raised in response to ResultChanged being called on INAContextEdit. It signifies that something in the NATraversalResult has been modified. For example, the solver performed network analysis and updated the results.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.