com.esri.arcgis.datasourcesfile
Class SMNetAttributesAccess

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMNetAttributesAccess
All Implemented Interfaces:
ISMNetAttributesAccess, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class SMNetAttributesAccess
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMNetAttributesAccess

Deprecated as of 10.1. The object to access the value of network attributes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
SMNetAttributesAccess(Object obj)
          Construct a SMNetAttributesAccess using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 Object getNetAttributeValue(String bstrAttrName, int lObjectID)
          Returns the network attribute value by object ID.
 int hashCode()
          the hashcode for this object
 
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

SMNetAttributesAccess

public SMNetAttributesAccess(Object obj)
                      throws IOException
Construct a SMNetAttributesAccess using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SMNetAttributesAccess.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
SMNetAttributesAccess o = (SMNetAttributesAccess)obj; // will not work

SMNetAttributesAccess o = new SMNetAttributesAccess(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems SMNetAttributesAccess theSMNetAttributesAccess = (SMNetAttributesAccess) obj;
Method Detail

equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getNetAttributeValue

public Object getNetAttributeValue(String bstrAttrName,
                                   int lObjectID)
                            throws IOException,
                                   AutomationException
Returns the network attribute value by object ID.

Description

Returns the network attribute value for the segment ID specified.

Remarks

GetNetAttributeValue returns the values of the predefined network attribute with the name AttrName for the network segment which ID equals ObjectID.


List of supported network attributes may differ from one data set to another. Most used network attributes are "Length" and "Time". Network segments are the records of the map layer that the current routing service is based on. Very often it is a streets layer, and its records are streets segments.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getNetAttributeValue in interface ISMNetAttributesAccess
Parameters:
bstrAttrName - The bstrAttrName (in)
lObjectID - The lObjectID (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.