|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INALocationObject
Provides access to network analysis locations.
The INALocationObject interface is used to manage the four network location fields on NALocationObject and NALocationFeature objects.
Method Summary | |
---|---|
INALocation |
getNALocation()
The network analysis location. |
void |
queryNALocation(INALocation location)
Returns the network location. |
void |
setNALocation(INALocation location)
The network analysis location. |
Method Detail |
---|
void setNALocation(INALocation location) throws IOException, AutomationException
The NALocation property specifies the "SourceID", "SourceOID", "PosAlong", and "SideOfEdge" fields of the NALocationObject/NALocationFeature.
After setting INALocation properties on the retrieved NALocation, you must add the NALocation back to the INALocationObject in order for the changes to be reflected in the NALocationObject. You must also call Store on the IRow or IFeature interface in order for these changes to be saved in the database.
location
- A reference to a com.esri.arcgis.networkanalyst.INALocation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INALocation getNALocation() throws IOException, AutomationException
The NALocation property specifies the "SourceID", "SourceOID", "PosAlong", and "SideOfEdge" fields of the NALocationObject/NALocationFeature.
If your feature is newly created, be sure to call IRowSubtypes.InitDefaultValues before retrieving the NALocation.
After setting INALocation properties on the retrieved NALocation, you must add the NALocation back to the INALocationObject in order for the changes to be reflected in the NALocationObject. You must also call Store on the IRow or IFeature interface in order for these changes to be saved in the database.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryNALocation(INALocation location) throws IOException, AutomationException
Calling QueryNALocation populates the NALocation object that is passed in as a parameter with values found in the "SourceID", "SourceOID", "PosAlong", and "SideOfEdge" fields of the NALocationObject/NALocationFeature.
Use this method rather than using the NALocation property when you aren't referencing multiple network locations and can use recycling semantics. This will improve overall performance since fewer objects will need to be created.
If your feature is newly created, be sure to call IRowSubtypes.InitDefaultValues before retrieving the NALocation.
After setting INALocation properties on the retrieved NALocation, you must add the NALocation back to the INALocationObject in order for the changes to be reflected in the NALocationObject. You must also call Store on the IRow or IFeature interface in order for these changes to be saved in the database.
location
- A reference to a com.esri.arcgis.networkanalyst.INALocation (in)
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 |