|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.networkanalyst.NALocatorLocationFieldsAgent
public class NALocatorLocationFieldsAgent
Defines the network location fields to be used by a locator.
The NALocatorLocationFieldsAgent object uses existing source ID, OID and position information to find network locations. This is much faster than the spatial searching that the NALocatorFeatureAgent uses.
When you solve a network analysis problem, you can export, for example, the stops with this information. If your network locations are not changing often (e.g., your restaurants don't move around), then using network location fields and this locator agent is the most efficient way to store and restore network locations.
| Constructor Summary | |
|---|---|
NALocatorLocationFieldsAgent()
Constructs a NALocatorLocationFieldsAgent using ArcGIS Engine. |
|
NALocatorLocationFieldsAgent(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NALocatorLocationFieldsAgent theNALocatorLocationFieldsAgent = (NALocatorLocationFieldsAgent) obj; |
|
| Method Summary | |
|---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
bind(INetworkDataset pNetworkDataset,
IGPMessages pGPMessages)
Re-associate the locator with the given network dataset and its schema. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getName()
The name of the locator agent. |
String |
getOIDFieldName()
The OID field name. |
String |
getPositionFieldName()
The position field name. |
String |
getSideFieldName()
The side field name. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getSourceIDFieldName()
The source ID field name. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Returns TRUE when the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Returns TRUE when the receiver and other are the same object. |
void |
load(IStream pstm)
load |
void |
queryGeometry(INALocation location,
IGeometry[] geometry)
The geometry for the given network location. |
void |
queryLocationByPoint(IPoint point,
double tolerance,
INALocation[] location,
IPoint[] outPoint,
double[] distanceFromPoint)
Find a network location from a point. |
void |
queryLocationByRow(IRow row,
double tolerance,
INALocation[] location,
double[] distanceFromPoint)
Find a network location from a row. |
void |
queryPoint(INALocation location,
IPoint[] point)
The point for the given network location. |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setOIDFieldName(String fieldName)
The OID field name. |
void |
setPositionFieldName(String fieldName)
The position field name. |
void |
setSideFieldName(String fieldName)
The side field name. |
void |
setSourceIDFieldName(String fieldName)
The source ID field name. |
void |
writeExternal(ObjectOutput out)
|
| 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 NALocatorLocationFieldsAgent()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NALocatorLocationFieldsAgent(Object obj)
throws IOException
NALocatorLocationFieldsAgent theNALocatorLocationFieldsAgent = (NALocatorLocationFieldsAgent) obj;
obj to NALocatorLocationFieldsAgent.
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 setSourceIDFieldName(String fieldName)
throws IOException,
AutomationException
SourceIDFieldName specifies the field which contains the Source ID values. Each feature class added to a network dataset gets assinged a unique Source ID.
setSourceIDFieldName in interface INALocatorLocationFieldsAgentfieldName - The fieldName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getSourceIDFieldName()
throws IOException,
AutomationException
SourceIDFieldName specifies the field which contains the Source ID values. Each feature class added to a network dataset gets assinged a unique Source ID.
getSourceIDFieldName in interface INALocatorLocationFieldsAgentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOIDFieldName(String fieldName)
throws IOException,
AutomationException
OIDFieldName specifies the field which contains the OID values.
setOIDFieldName in interface INALocatorLocationFieldsAgentfieldName - The fieldName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getOIDFieldName()
throws IOException,
AutomationException
OIDFieldName specifies the field which contains the OID values.
getOIDFieldName in interface INALocatorLocationFieldsAgentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPositionFieldName(String fieldName)
throws IOException,
AutomationException
PositionFieldName specifies the field which contains the position values. Position values range from 0.0 to 1.0 along the feature.
setPositionFieldName in interface INALocatorLocationFieldsAgentfieldName - The fieldName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getPositionFieldName()
throws IOException,
AutomationException
PositionFieldName specifies the field which contains the position values. Position values range from 0.0 to 1.0 along the feature.
getPositionFieldName in interface INALocatorLocationFieldsAgentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSideFieldName(String fieldName)
throws IOException,
AutomationException
SideFieldName specifies the field which contains the side of street values.
setSideFieldName in interface INALocatorLocationFieldsAgentfieldName - The fieldName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getSideFieldName()
throws IOException,
AutomationException
SideFieldName specifies the field which contains the side of street values.
getSideFieldName in interface INALocatorLocationFieldsAgentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
The Name of the locator agent.
getName in interface INALocatorAgentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryLocationByPoint(IPoint point,
double tolerance,
INALocation[] location,
IPoint[] outPoint,
double[] distanceFromPoint)
throws IOException,
AutomationException
QueryLocationByPoint searches for network locations based upon an input point. The corresponding NALocation, the point where the location was found, and the distance from the input point to the source feature found are all returned.
When the NALocatorFeatureAgent is used, the distance returned is from the point to the feature, not from the point to the actual network location on the feature. It is important to know the distance to the feature as a whole because this is the feature on which you want to locate the endpoint/midpoint. If you need to determine the distance from the input point to the actual network location point, use IProximityOperator::ReturnDistance between the input point and the output point.
The NALocatorLocationFieldsAgent should not be used with this method.
queryLocationByPoint in interface INALocatorAgentpoint - A reference to a com.esri.arcgis.geometry.IPoint (in)tolerance - The tolerance (in)location - A reference to a com.esri.arcgis.networkanalyst.INALocation (in/out: use single element array)outPoint - A reference to a com.esri.arcgis.geometry.IPoint (in/out: use single element array)distanceFromPoint - The distanceFromPoint (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryLocationByRow(IRow row,
double tolerance,
INALocation[] location,
double[] distanceFromPoint)
throws IOException,
AutomationException
QueryLocationByRow searches for network locations based upon the inbound Row. The result is returned as an INALocation.
For a NALocatorFeatureAgent, if the row is a feature, QueryLocationByRow uses the feature geometry to populate the INALocation.
For a NALocatorLocationFieldsAgent, QueryLocationByRow uses the field names specified on INALocatorLocationFieldsAgent to populate the INALocation.
queryLocationByRow in interface INALocatorAgentrow - A reference to a com.esri.arcgis.geodatabase.IRow (in)tolerance - The tolerance (in)location - A reference to a com.esri.arcgis.networkanalyst.INALocation (in/out: use single element array)distanceFromPoint - The distanceFromPoint (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryPoint(INALocation location,
IPoint[] point)
throws IOException,
AutomationException
The result of calling QueryLocationByPoint or QueryLocationByRow is an INALocation. Use QueryPoint to get the Point that represents this location.
queryPoint in interface INALocatorAgentlocation - A reference to a com.esri.arcgis.networkanalyst.INALocation (in)point - A reference to a com.esri.arcgis.geometry.IPoint (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void bind(INetworkDataset pNetworkDataset,
IGPMessages pGPMessages)
throws IOException,
AutomationException
Bind re-associates the NALocator with a network dataset. This method must be called before calling any of the Query functions.
bind in interface INALocatorAgentpNetworkDataset - A reference to a com.esri.arcgis.geodatabase.INetworkDataset (in)pGPMessages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryGeometry(INALocation location,
IGeometry[] geometry)
throws IOException,
AutomationException
QueryGeometry is used to get the source feature geometry of the network location. For example, if a network location is referencing a position along a line feature, the line feature's Polyline geometry will be returned by this method.
The INALocation must already be located, in which case INALocation::IsLocated returns true.
When QueryGeometry is called from a NALocatorFeatureAgent class, the INALocation::SourceID must match the SourceID of the NALocatorFeatureAgent.
queryGeometry in interface INALocatorAgent2location - A reference to a com.esri.arcgis.networkanalyst.INALocation (in)geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in/out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IClone esri_clone()
throws IOException,
AutomationException
esri_clone in interface ICloneIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void assign(IClone src)
throws IOException,
AutomationException
assign in interface IClonesrc - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEqual(IClone other)
throws IOException,
AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isIdentical(IClone other)
throws IOException,
AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical in interface ICloneother - A reference to a com.esri.arcgis.system.IClone (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||