This document is archived and information here might be outdated. Recommended version. |
Defines how fields should be mapped as inputs and outputs of analysis functions.
Interfaces | Description |
---|---|
IClone (esriSystem) | Provides access to members that control cloning of objects. |
INAClassDefinition | Provides access to properties common to all network analyst class definitions. |
INAClassDefinition2 | Provides access to properties common to all network analyst class definitions. |
INAClassDefinitionEdit | Provides access to editable properties common to all network analyst class definitions. |
IPersistStream (esriSystem) | |
IXMLSerialize (esriSystem) | Provides access to members that XML serialize and deserialize an object to/from XML. |
The NAClassDefinition is created and maintained by the network solver. The NAClassDefinition holds information about how the NAClass fields should be created when the solver creates the NAContext and corresponding NAClass objects. It also holds additional information about the fields of the NAClass that cannot be found on the IField interface. This information is used by the solver and the Network Analyst Tools.
There are three ways to obtain NAClassDefinition objects:
INASolver naSolver=new NARouteSolverClass();
INAContext naContext=naSolver.CreateContext(deNetworkDataset, "My Context");
INamedSet naClasses=naContext.NAClasses;
INAClass naClass=naClasses.get_ItemByName("Stops") as INAClass;
INAClassDefinition naClassDefinition=naClass.ClassDefinition;
INASolver naSolver= new NARouteSolverClass();
INamedSet naClassDefinitions=naSolver.ClassDefinitions;
INAClassDefinition naClassDefinition=naClassDefinitions.get_ItemByName("Stops") as INAClassDefinition;
INAClassDefinition naClassDef=new NAClassDefinitionClass ();