|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.networkanalyst.NALocation
public class NALocation
Defines the side and position of an analysis object on a feature.
An NALocation object specifies the side and position along a Feature in a NetworkDataset.
NALocation objects can be CoCreated, retrieved from an NALocationObject or NALocationFeature object by getting the NALocation property on the INALocationObject interface, or retrieved through the NALocator object.
| Constructor Summary | |
|---|---|
NALocation()
Constructs a NALocation using ArcGIS Engine. |
|
NALocation(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NALocation theNALocation = (NALocation) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getSide()
The side of the feature. |
int |
getSourceID()
The ID of the network source. |
int |
getSourceOID()
The OID of the feature. |
double |
getSourcePosition()
The position along the feature. |
int |
hashCode()
the hashcode for this object |
boolean |
isLocated()
Indicates if the location has been found on the network. |
void |
setSide(int side)
The side of the feature. |
void |
setSourceID(int sourceID)
The ID of the network source. |
void |
setSourceOID(int sourceOID)
The OID of the feature. |
void |
setSourcePosition(double position)
The position along the feature. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public NALocation()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NALocation(Object obj)
throws IOException
NALocation theNALocation = (NALocation) obj;
obj to NALocation.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void setSourceID(int sourceID)
throws IOException,
AutomationException
The SourceID property specifies the SourceID of the feature class in the NetworkDataset that the NALocation is referencing. The SourceID of the feature class can be retrieved from the ID property on the INetworkSource interface.
setSourceID in interface INALocationsourceID - The sourceID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSourceID()
throws IOException,
AutomationException
The SourceID property specifies the SourceID of the feature class in the NetworkDataset that the NALocation is referencing. The SourceID of the feature class can be retrieved from the ID property on the INetworkSource interface.
getSourceID in interface INALocationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSourceOID(int sourceOID)
throws IOException,
AutomationException
The SourceOID property specifies the ObjectID of the feature in the NetworkDataset that the NALocation is referencing. The SourceOID is used in conjunction with the SourceID to uniquely specify a Feature in the NetworkDataset.
setSourceOID in interface INALocationsourceOID - The sourceOID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSourceOID()
throws IOException,
AutomationException
The SourceOID property specifies the ObjectID of the feature in the NetworkDataset that the NALocation is referencing. The SourceOID is used in conjunction with the SourceID to uniquely specify a Feature in the NetworkDataset.
getSourceOID in interface INALocationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSourcePosition(double position)
throws IOException,
AutomationException
The SourcePosition property specifies the position along the feature specified by the SourceID and SourceOID. Valid values are in the range of 0 to 1. A value of 0.25 would translate to 1/4 of the way along the source feature in the digitized direction.
setSourcePosition in interface INALocationposition - The position (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getSourcePosition()
throws IOException,
AutomationException
The SourcePosition property specifies the position along the feature specified by the SourceID and SourceOID. Valid values are in the range of 0 to 1. A value of 0.25 would translate to 1/4 of the way along the source feature in the digitized direction.
getSourcePosition in interface INALocationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSide(int side)
throws IOException,
AutomationException
The Side property specifies the position of the NALocation in relation to the feature specified by the SourceID and SourceOID. Valid values are dictated by the enumeration esriNAEdgeSideType which has values esriNAEdgeSideRight (1) and esriNAEdgeSideLeft (2). The side is always in relation to the digitized direction of the feature.
setSide in interface INALocationside - A com.esri.arcgis.networkanalyst.esriNAEdgeSideType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSide()
throws IOException,
AutomationException
The Side property specifies the position of the NALocation in relation to the feature specified by the SourceID and SourceOID. Valid values are dictated by the enumeration esriNAEdgeSideType, which has values esriNAEdgeSideRight (1) and esriNAEdgeSideLeft (2). The side is always in relation to the digitized direction of the feature.
getSide in interface INALocationIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLocated()
throws IOException,
AutomationException
This property returns True if the SourceID, SourceOID, SourcePosition, and Side properties all have valid values that should correspond to a position along a feature in a NetworkDataset.
isLocated in interface INALocationIOException - 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 | ||||||||