com.esri.arcgis.geodatabase
Interface INetworkElement

All Superinterfaces:
Serializable
All Known Subinterfaces:
INetworkEdge, INetworkEdge2, INetworkJunction, INetworkJunction2, INetworkTurn, INetworkTurn2
All Known Implementing Classes:
INetworkEdge2Proxy, INetworkEdgeProxy, INetworkElementProxy, INetworkJunction2Proxy, INetworkJunctionProxy, INetworkTurn2Proxy, INetworkTurnProxy, NetworkEdge, NetworkJunction, NetworkTurn

public interface INetworkElement
extends Serializable

Provides access to members that specify the properties common to all network elements.

Remarks

The INetworkElement interface is used to access the properties of the network element, such as its attribute values and identifiers.

To access the NetworkElement object for an existing element in the network dataset, use the QueryJunction, QueryEdge, or QueryTurn methods on the INetworkQuery interface.

Product Availability

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


Method Summary
 Object getAttributeValue(int attributeID)
          Value of this network element for the given network attribute ID.
 Object getAttributeValueByName(String attributeName)
          Value of this network element for the given network attribute name.
 int getEID()
          Element ID for this network element.
 int getElementType()
          Type of this network element.
 int getOID()
          Object ID of the object corresponding to this network element.
 int getSourceID()
          ID of the network dataset source from which this network element was derived.
 

Method Detail

getEID

int getEID()
           throws IOException,
                  AutomationException
Element ID for this network element.

Product Availability

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

Returns:
The eID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElementType

int getElementType()
                   throws IOException,
                          AutomationException
Type of this network element.

Product Availability

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

Returns:
A com.esri.arcgis.geodatabase.esriNetworkElementType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSourceID

int getSourceID()
                throws IOException,
                       AutomationException
ID of the network dataset source from which this network element was derived.

Remarks

The SourceID is the unique ID of the NetworkSource that generated this network element.

Product Availability

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

Returns:
The sourceID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOID

int getOID()
           throws IOException,
                  AutomationException
Object ID of the object corresponding to this network element.

Remarks

The OID property returns the ObjectID of the feature that generated this network element.

Product Availability

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

Returns:
The oID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributeValue

Object getAttributeValue(int attributeID)
                         throws IOException,
                                AutomationException
Value of this network element for the given network attribute ID.

Product Availability

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

Parameters:
attributeID - The attributeID (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributeValueByName

Object getAttributeValueByName(String attributeName)
                               throws IOException,
                                      AutomationException
Value of this network element for the given network attribute name.

Product Availability

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

Parameters:
attributeName - The attributeName (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.