|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAClassLoader2
Provides access to populate network analysis classes in preparation for analysis.
The INAClassLoader2 interface is used, for example, to populate stop locations from a point feature class. It is also used to specify the snapping and reverse-geocoding properties of the NAClassLoader object.
Method Summary | |
---|---|
ILocator |
getAddressLocator()
The address locator to be used. |
double |
getSnapOffsetDistance()
The snap offset distance from the network. |
int |
getSnapOffsetUnits()
The snap offset units. |
void |
initialize(INAContext context,
String nAClassName,
ICursor cursor)
Quickly initializes the class loader to be able to load information from a cursor into a given NAClass. |
boolean |
isSnapToNetwork()
Indicates if the geometry should be snapped to the network. |
void |
setAddressLocatorByRef(ILocator addressLocator)
The address locator to be used. |
void |
setSnapOffsetDistance(double distance)
The snap offset distance from the network. |
void |
setSnapOffsetUnits(int units)
The snap offset units. |
void |
setSnapToNetwork(boolean enabled)
Indicates if the geometry should be snapped to the network. |
Methods inherited from interface com.esri.arcgis.networkanalyst.INAClassLoader |
---|
getFieldMap, getLocator, getNAClass, load, setFieldMapByRef, setLocatorByRef, setNAClassByRef |
Method Detail |
---|
void initialize(INAContext context, String nAClassName, ICursor cursor) throws IOException, AutomationException
The INAClassLoader2::Initialize method sets the Locator, NAClass, and FieldMap properties otherwise set via methods on the INAClassLoader interface.
context
- A reference to a com.esri.arcgis.networkanalyst.INAContext (in)nAClassName
- The nAClassName (in)cursor
- A reference to a com.esri.arcgis.geodatabase.ICursor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAddressLocatorByRef(ILocator addressLocator) throws IOException, AutomationException
The AddressLocator property specifies the ILocator address locator used to determine the name of the network location based on reverse geocoding of the network location's geometry.
addressLocator
- A reference to a com.esri.arcgis.geodatabase.ILocator (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILocator getAddressLocator() throws IOException, AutomationException
The AddressLocator property specifies the ILocator address locator used to determine the name of the network location based on reverse geocoding of the network location's geometry.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSnapToNetwork(boolean enabled) throws IOException, AutomationException
SnapToNetwork specifies if the network location's geometry should be a snapped to where it lies on the network dataset during load.
Specify the SnapOffsetDistance and SnapOffsetUnits if you want the network location offset a fixed difference from the true snap location. This is useful if you care about the side of the road the network location is on.
enabled
- The enabled (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSnapToNetwork() throws IOException, AutomationException
SnapToNetwork specifies if the network location's geometry should be snapped to where it lies on the network dataset during load.
Specify the SnapOffsetDistance and SnapOffsetUnits if you want the network location offset a fixed difference from the true snap location. This is useful if you care about the side of the road the network location is on.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSnapOffsetDistance(double distance) throws IOException, AutomationException
Specify the SnapOffsetDistance and SnapOffsetUnits if you want the network location offset a fixed difference from the true snap location. This is useful if you care about the side of the road the network location is on.
This is only applicable if SnapToNetwork is true.
distance
- The distance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getSnapOffsetDistance() throws IOException, AutomationException
Specify the SnapOffsetDistance and SnapOffsetUnits if you want the network location offset a fixed difference from the true snap location. This is useful if you care about the side of the road the network location is on.
This is only applicable if SnapToNetwork is true.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSnapOffsetUnits(int units) throws IOException, AutomationException
Specify the SnapOffsetDistance and SnapOffsetUnits if you want the network location offset a fixed difference from the true snap location. This is useful if you care about the side of the road the network location is on.
This is only applicable if SnapToNetwork is true.
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSnapOffsetUnits() throws IOException, AutomationException
Specify the SnapOffsetDistance and SnapOffsetUnits if you want the network location offset a fixed difference from the true snap location. This is useful if you care about the side of the road the network location is on.
This is only applicable if SnapToNetwork is true.
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 |