|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAClassLoader
Provides access to populate network analysis classes in preparation for analysis.
INAClassLoader has been superseded by INAClassLoader2.
Method Summary | |
---|---|
INAClassFieldMap |
getFieldMap()
The field mapping definition. |
INALocator |
getLocator()
The locator to be used. |
INAClass |
getNAClass()
The network analysis class. |
void |
load(ICursor cursor,
ITrackCancel trackCancel,
int[] rowsInCursor,
int[] rowsLocated)
Populate the network analysis class. |
void |
setFieldMapByRef(INAClassFieldMap fieldMapping)
The field mapping definition. |
void |
setLocatorByRef(INALocator loaderLocator)
The locator to be used. |
void |
setNAClassByRef(INAClass classToLoadInto)
The network analysis class. |
Method Detail |
---|
void setNAClassByRef(INAClass classToLoadInto) throws IOException, AutomationException
The NAClass property specifies the NAClass feature class holding the network locations that will be populated when INAClassLoader::Load is called.
classToLoadInto
- A reference to a com.esri.arcgis.networkanalyst.INAClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INAClass getNAClass() throws IOException, AutomationException
The NAClass property specifies the NAClass feature class holding the network locations that will be populated when INAClassLoader::Load is called.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFieldMapByRef(INAClassFieldMap fieldMapping) throws IOException, AutomationException
FieldMap specifies the NAClassFieldMap that dictates what the values for the newly created NALocationFeatures will be. If there is a mapped field, the mapped field value will be used. If there is no mapped field or the mapped field value is NULL, the default value will be used.
fieldMapping
- A reference to a com.esri.arcgis.networkanalyst.INAClassFieldMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INAClassFieldMap getFieldMap() throws IOException, AutomationException
FieldMap specifies the NAClassFieldMap that dictates what the values for the newly created NALocationFeatures will be. If there is a mapped field, the mapped field value will be used. If there is no mapped field or the mapped field value is NULL, the default value will be used.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLocatorByRef(INALocator loaderLocator) throws IOException, AutomationException
The Locator property specifies how network locations will be found.
loaderLocator
- A reference to a com.esri.arcgis.networkanalyst.INALocator (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INALocator getLocator() throws IOException, AutomationException
The Locator property specifies how network locations will be found.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void load(ICursor cursor, ITrackCancel trackCancel, int[] rowsInCursor, int[] rowsLocated) throws IOException, AutomationException
Load iterates through the input cursor and populates the NAClass with NALocationFeatures with field values based on the FieldMap and Locator. It returns as output parameters the number of features in the cursor and the number of network locations that could be located.
If you know the number of rows in the input cursor and are passing a TrackCancel object that has a reference to an object that implements IStepProgressor, you should set the rowsInCursor parameter to the number of rows in the cursor. This will allow for feedback showing how many rows have been loaded out of the total number to load. For example it might say "Loading into "Stops" (120 of 230)". If you do not know how many rows are in the cursor, you should initialize the rowsInCursor variable to 0 prior to calling Load.
This method will return the error E_ABORT if the ITrackCancel object passed in to Load causes the load to cancel.
cursor
- A reference to a com.esri.arcgis.geodatabase.ICursor (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)rowsInCursor
- The rowsInCursor (in/out: use single element array)rowsLocated
- The rowsLocated (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |