|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.NetworkJunction
public class NetworkJunction
A container for querying information on a network dataset junction element.
To access the NetworkJunction object for an existing junction element in the network dataset, use the QueryJunction method on the INetworkQuery interface.
Constructor Summary | |
---|---|
NetworkJunction(Object obj)
Construct a NetworkJunction 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 |
getEdgeCount()
Number of network edge elements adjacent to this network junction element. |
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. |
int |
getTurnCount()
Number of network turn elements anchored at this network junction. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
queryEdge(int index,
boolean leavingJunction,
INetworkEdge edge)
Queries the index'th network edge element adjacent to this network junction element. |
void |
queryPoint(IPoint point)
Queries the point object corresponding to this network junction element. |
void |
queryTurn(int index,
INetworkTurn turn)
Queries the index'th network turn element anchored at this network junction element. |
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 NetworkJunction(Object obj) throws IOException
obj
to NetworkJunction
. *
NetworkJunction o = (NetworkJunction)obj; // will not work
NetworkJunction o = new NetworkJunction(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
NetworkJunction theNetworkJunction = (NetworkJunction) 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 getEdgeCount() throws IOException, AutomationException
The EdgeCount is the number of adjacent edge elements leaving this junction.
getEdgeCount
in interface INetworkJunction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTurnCount() throws IOException, AutomationException
The TurnCount is the number of turn elements that are anchored to this junction. A turn element is anchored at a junction if the last two edges of the turn pass through the junction.
getTurnCount
in interface INetworkJunction
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryEdge(int index, boolean leavingJunction, INetworkEdge edge) throws IOException, AutomationException
The QueryEdge method retrieves the edge element adjacent to this junction at the specified index. The index values range from 0 to (EdgeCount - 1).
The leavingJunction parameter determines in which travel direction the edge element is returned. If the leavingJunction parameter is True, then the edge element returned is the element that travels in the direction away from the junction.
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.
queryEdge
in interface INetworkJunction
index
- The index (in)leavingJunction
- The leavingJunction (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 queryTurn(int index, INetworkTurn turn) throws IOException, AutomationException
The QueryTurn method retrieves the turn element anchored to this junction at the specified index. A turn element is anchored at a junction if the last two edges of the turn pass through the junction. The index values range from 0 to (TurnCount - 1).
This 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 INetworkJunction
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 queryPoint(IPoint point) throws IOException, AutomationException
The QueryPoint method retrieves the Point geometry associated with this junction element.
This method requires an instantiated Point object to be passed in as a parameter.
On an SDC network dataset, QueryPoint returns an empty Point object for junction elements that do not connect to any edges (i.e., have an EdgeCount of zero).
queryPoint
in interface INetworkJunction
point
- A reference to a com.esri.arcgis.geometry.IPoint (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 INetworkJunction2
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 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 |