com.esri.arcgis.networkanalyst
Interface INAClass

All Superinterfaces:
Serializable
All Known Implementing Classes:
INAClassProxy, NAClass

public interface INAClass
extends Serializable

Provides access to properties/methods common to all network analysis classes.

Remarks

INAClass is the interface provided on the NAClass object to access the NAClassDefinition and to quickly delete all the rows on the NAClass object.

Product Availability

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


Method Summary
 void deleteAllRows()
          Remove all items added to the class (for example, stops or incidents).
 INAClassDefinition getClassDefinition()
          The network analyst class definition.
 boolean isSaveRowsOnPersist()
          Indicates if rows are stored with the map document.
 void setSaveRowsOnPersist(boolean pFlag)
          Indicates if rows are stored with the map document.
 

Method Detail

getClassDefinition

INAClassDefinition getClassDefinition()
                                      throws IOException,
                                             AutomationException
The network analyst class definition.

Remarks

Returns the ClassDefinition object associated with this NAClass.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.networkanalyst.INAClassDefinition
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAllRows

void deleteAllRows()
                   throws IOException,
                          AutomationException
Remove all items added to the class (for example, stops or incidents).

Remarks

DeleteAllRows quickly removes all of the rows from the NAClass. This is the quickest method to clear all of the NetworkLocationObjects from an NAClass.

Product Availability

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

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

setSaveRowsOnPersist

void setSaveRowsOnPersist(boolean pFlag)
                          throws IOException,
                                 AutomationException
Indicates if rows are stored with the map document.

Remarks

SaveRowsOnPersist specifies if the rows in the NAClass should be saved in the stream when IPersistStream::Save is called.

Product Availability

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

Parameters:
pFlag - The pFlag (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSaveRowsOnPersist

boolean isSaveRowsOnPersist()
                            throws IOException,
                                   AutomationException
Indicates if rows are stored with the map document.

Remarks

SaveRowsOnPersist specifies if the rows in the NAClass should be saved in the stream when IPersistStream::Save is called.

Product Availability

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

Returns:
The pFlag
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.