com.esri.arcgis.networkanalyst
Interface INAResult2

All Superinterfaces:
INAResult, Serializable
All Known Implementing Classes:
NAODCostMatrixResult, NATraversalResult, NAVRPResult

public interface INAResult2
extends INAResult, Serializable

Provides access to the results of an analysis.

Remarks

The INAResult2 interface is a required interface on any network result. Objects implementing this interface may be returned by the Result property on INAContext.

This interface has methods to setup and clear the analysis results as well as methods to do high level interrogation of the results.

Product Availability

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


Method Summary
 void create(String name, INAContextHelper nAContextHelper, boolean isScratch)
          Set up for a new analysis.
 void initializeEx(INAContextHelper nAContextHelper)
          Provides the result object with a reference to the context.
 
Methods inherited from interface com.esri.arcgis.networkanalyst.INAResult
emptyAll, getNAContext, getName, getOutputProperties, initialize, isHasValidResult, setHasValidResult
 

Method Detail

create

void create(String name,
            INAContextHelper nAContextHelper,
            boolean isScratch)
            throws IOException,
                   AutomationException
Set up for a new analysis.

Remarks

The method Create is called by the solver when it creates a new result object.

The isScratch parameter specifies if the result feature classes should be kept in memory (false) or saved on disk (true).

The NAContextHelper object passed in is used to get back to the NAContext. You can maintain a strong reference to the NAContextHelper object within your custom result object, but do not hold onto a strong reference to the NAContext itself as this will create a circular reference.

This method should be called instead of INAResult.Initialize.

Product Availability

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

Parameters:
name - The name (in)
nAContextHelper - A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (in)
isScratch - The isScratch (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

initializeEx

void initializeEx(INAContextHelper nAContextHelper)
                  throws IOException,
                         AutomationException
Provides the result object with a reference to the context.

Remarks

The InitializeEx method is called after the result object has been deserialized as part of the NAContext being loaded. It is called to pass to the result object a backpointer reference to the NAContext that it's bound to.

The NAContextHelper object passed in is used to get back to the NAContext. You can maintain a strong reference to the NAContextHelper object within your custom result object, but do not hold onto a strong reference to the NAContext itself as this will create a circular reference.

Product Availability

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

Parameters:
nAContextHelper - A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.