com.esri.arcgis.networkanalyst
Class INAContextEventsProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.networkanalyst.INAContextEventsProxy
All Implemented Interfaces:
INAContextEvents, Externalizable, Serializable, EventListener

public class INAContextEventsProxy
extends com.esri.arcgis.interop.Dispatch
implements INAContextEvents, 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.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  INAContextEventsProxy()
           
  INAContextEventsProxy(Object obj)
           
protected INAContextEventsProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void onNAContextUpdated(INAContextEventsOnNAContextUpdatedEvent theEvent)
          Called when the network analysis context is updated.
 void onNAResultUpdated(INAContextEventsOnNAResultUpdatedEvent theEvent)
          Called when the network analysis result is updated.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

INAContextEventsProxy

public INAContextEventsProxy()

INAContextEventsProxy

public INAContextEventsProxy(Object obj)
                      throws IOException
Throws:
IOException

INAContextEventsProxy

protected INAContextEventsProxy(Object obj,
                                String iid)
                         throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

onNAContextUpdated

public 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.

Specified by:
onNAContextUpdated in interface INAContextEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onNAResultUpdated

public 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.

Specified by:
onNAResultUpdated in interface INAContextEvents
Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.