|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.arcgis.geodatabase.NetworkEdge
public class NetworkEdge
A container for querying information on a network dataset edge element.
To access the NetworkEdge object for an existing edge element in the network dataset, use the QueryEdge method on the INetworkQuery interface.
Constructor Summary | |
---|---|
NetworkEdge(Object obj)
Construct a NetworkEdge 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 |
getAttributeValue(int attributeID)
Value of this network element for the given network attribute ID. |
Object |
getAttributeValueAtTime(int attributeID,
Date localTime,
int timeUsage)
Value of this network element for the given network attribute ID and local time. |
Object |
getAttributeValueByName(String attributeName)
Value of this network element for the given network attribute name. |
int |
getCoveredEdgeCount()
Returns the number of edges covered by this edge. |
int |
getDirection()
Direction in which this network edge element is oriented relative to the direction of its source object. |
int |
getEID()
Element ID for this network element. |
int |
getElementType()
Type of this network element. |
double |
getFromAzimuth()
Direction of travel at the from-end of the network edge element. |
int |
getOID()
Object ID of the object corresponding to this network element. |
Object |
getPartialEdgeAttributeValue(double fromPosition,
double toPosition,
int attributeID)
Value of this edge element along the given range for the given network attribute ID. |
Object |
getPartialEdgeAttributeValueAtTime(double fromPosition,
double toPosition,
int attributeID,
Date localTime,
int timeUsage)
Value of this partial edge element for the given network attribute ID and local. |
double |
getPositionAlongObject(double positionAlongElement)
Position along the source object at which the specified position along the network edge element lies. |
int |
getSourceID()
ID of the network dataset source from which this network element was derived. |
double |
getToAzimuth()
Direction of travel at the to-end of the network edge element. |
int |
getTurnCount()
Number of network turn elements in which this network edge element participates. |
int |
getTurnParticipationType()
Participation of this network edge element within a network turn element. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isHasCoveringHyperedge()
Indicates if the network edge element has a covering hyperedge. |
boolean |
isHyperedge()
Indicates if the network edge element is a hyperedge. |
void |
queryCoveredEdge(int index,
INetworkEdge edge)
Used to iterate over the edges covered by this edge. |
void |
queryCoveringHyperedge(INetworkEdge edge,
double[] fromPosition,
double[] toPosition)
Queries the covering hyperedge of the network edge element and returns its related positions along the covering hyperedge. |
void |
queryEdgeInOtherDirection(INetworkEdge edge)
Queries the network edge element corresponding to the reverse traversal of this network edge element. |
void |
queryJunctions(INetworkJunction fromJunction,
INetworkJunction toJunction)
Queries the network junction elements adjacent to this network edge element. |
void |
queryPositions(double[] fromPosition,
double[] toPosition)
Queries the positions along the source object at which the from-end and to-end of the network edge element lies. |
void |
queryTurn(int index,
INetworkTurn turn)
Queries the index'th network turn element in which this network edge element participates. |
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 NetworkEdge(Object obj) throws IOException
obj
to NetworkEdge
. *
NetworkEdge o = (NetworkEdge)obj; // will not work
NetworkEdge o = new NetworkEdge(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
NetworkEdge theNetworkEdge = (NetworkEdge) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getEID() throws IOException, AutomationException
getEID
in interface INetworkElement
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getElementType() throws IOException, AutomationException
getElementType
in interface INetworkElement
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSourceID() throws IOException, AutomationException
The SourceID is the unique ID of the NetworkSource that generated this network element.
getSourceID
in interface INetworkElement
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getOID() throws IOException, AutomationException
The OID property returns the ObjectID of the feature that generated this network element.
getOID
in interface INetworkElement
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getAttributeValue(int attributeID) throws IOException, AutomationException
getAttributeValue
in interface INetworkElement
attributeID
- The attributeID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getAttributeValueByName(String attributeName) throws IOException, AutomationException
getAttributeValueByName
in interface INetworkElement
attributeName
- The attributeName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDirection() throws IOException, AutomationException
The Direction property returns the direction of travel along this edge element relative to the digitized direction of the source feature. The direction of travel is either esriNEDAlongDigitized, meaning the direction of travel along the edge element is the same as the feature's direction of digitization, or esriNEDAgainstDigitized, meaning the direction of travel along the edge element is the opposite of the feature's direction of digitization.
getDirection
in interface INetworkEdge
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryPositions(double[] fromPosition, double[] toPosition) throws IOException, AutomationException
The QueryPositions method queries the positional values along the source feature from which this edge element was created. The position values range from 0.0 to 1.0, where 0.0 is at the from-end of the feature and 1.0 is at the to-end of the feature.
If the Direction property is esriNEDAlongDigitized, then the fromPosition value will be less than or equal to the toPositionValue. If the Direction property is esriNEDAgainstDigitized, then the fromPosition value will be greater than or equal to the toPositionValue.
queryPositions
in interface INetworkEdge
fromPosition
- The fromPosition (out: use single element array)toPosition
- The toPosition (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getFromAzimuth() throws IOException, AutomationException
The FromAzimuth property indicates the direction of travel at the starting end of the edge element. For edge elements generated by an EdgeFeatureSource, the FromAzimuth and ToAzimuth values are measured clockwise in degrees relative to the positive Y-axis direction of the spatial reference of the network dataset.
getFromAzimuth
in interface INetworkEdge
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getToAzimuth() throws IOException, AutomationException
The ToAzimuth property indicates the direction of travel at the terminating end of the edge element. For edge elements generated by an EdgeFeatureSource, the FromAzimuth and ToAzimuth values are measured clockwise in degrees relative to the positive Y-axis direction of the spatial reference of the network dataset.
getToAzimuth
in interface INetworkEdge
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTurnParticipationType() throws IOException, AutomationException
getTurnParticipationType
in interface INetworkEdge
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getPositionAlongObject(double positionAlongElement) throws IOException, AutomationException
getPositionAlongObject
in interface INetworkEdge
positionAlongElement
- The positionAlongElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTurnCount() throws IOException, AutomationException
The TurnCount property returns the number of turn elements that traverse this edge.
getTurnCount
in interface INetworkEdge
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryTurn(int index, INetworkTurn turn) throws IOException, AutomationException
The QueryTurn method retrieves the turn element that traverses this edge at the specified index. The index values range from 0 to (TurnCount - 1).
The QueryTurn method requires an instantiated NetworkTurn object to be passed in as a parameter. You can create an empty NetworkTurn object by using the INetworkQuery::CreateNetworkElement method.
queryTurn
in interface INetworkEdge
index
- The index (in)turn
- A reference to a com.esri.arcgis.geodatabase.INetworkTurn (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryEdgeInOtherDirection(INetworkEdge edge) throws IOException, AutomationException
The QueryEdgeInOtherDirection method retrieves the edge element in the opposite direction of travel as this edge.
This method requires an instantiated NetworkEdge object to be passed in as a parameter. You can create an empty NetworkEdge object by using the INetworkQuery::CreateNetworkElement method.
queryEdgeInOtherDirection
in interface INetworkEdge
edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryJunctions(INetworkJunction fromJunction, INetworkJunction toJunction) throws IOException, AutomationException
The QueryJunctions method retrieves the junction elements at the ends of this edge element.
This method requires two instantiated NetworkJunction objects to be passed in as a parameter. You can create an empty NetworkJunction object by using the INetworkQuery::CreateNetworkElement method.
queryJunctions
in interface INetworkEdge
fromJunction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)toJunction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getPartialEdgeAttributeValue(double fromPosition, double toPosition, int attributeID) throws IOException, AutomationException
getPartialEdgeAttributeValue
in interface INetworkEdge2
fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)attributeID
- The attributeID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getAttributeValueAtTime(int attributeID, Date localTime, int timeUsage) throws IOException, AutomationException
getAttributeValueAtTime
in interface INetworkEdge2
attributeID
- The attributeID (in)localTime
- The localTime (in)timeUsage
- A com.esri.arcgis.geodatabase.esriNetworkTimeUsage constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getPartialEdgeAttributeValueAtTime(double fromPosition, double toPosition, int attributeID, Date localTime, int timeUsage) throws IOException, AutomationException
getPartialEdgeAttributeValueAtTime
in interface INetworkEdge2
fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)attributeID
- The attributeID (in)localTime
- The localTime (in)timeUsage
- A com.esri.arcgis.geodatabase.esriNetworkTimeUsage constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHyperedge() throws IOException, AutomationException
isHyperedge
in interface INetworkEdge2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasCoveringHyperedge() throws IOException, AutomationException
isHasCoveringHyperedge
in interface INetworkEdge2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryCoveringHyperedge(INetworkEdge edge, double[] fromPosition, double[] toPosition) throws IOException, AutomationException
queryCoveringHyperedge
in interface INetworkEdge2
edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)fromPosition
- The fromPosition (out: use single element array)toPosition
- The toPosition (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCoveredEdgeCount() throws IOException, AutomationException
getCoveredEdgeCount
in interface INetworkEdge2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryCoveredEdge(int index, INetworkEdge edge) throws IOException, AutomationException
Using the CoveredEdgeCount property to find the range of values to use as an index, QueryCoveredEdge is called to iterate over the edges that are covered by this hyperedge.
queryCoveredEdge
in interface INetworkEdge2
index
- The index (in)edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 |