|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.NetworkTurn
public class NetworkTurn
A container for querying information on a network dataset turn element.
To access the NetworkTurn object for an existing turn element in the network dataset, use the QueryTurn method on the INetworkQuery interface.
Constructor Summary | |
---|---|
NetworkTurn(Object obj)
Construct a NetworkTurn using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
double |
getAngle()
Angle of the turning movement described by this network turn. |
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 that participate in this network turn. |
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 |
getTurnType()
Type of network turn. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
queryAtJunction(INetworkJunction junction)
Queries the at-junction of this network turn. |
void |
queryEdge(int index,
INetworkEdge edge)
Queries the index'th edge element of this network turn. |
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 NetworkTurn(Object obj) throws IOException
obj
to NetworkTurn
. *
NetworkTurn o = (NetworkTurn)obj; // will not work
NetworkTurn o = new NetworkTurn(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
NetworkTurn theNetworkTurn = (NetworkTurn) 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 getTurnType() throws IOException, AutomationException
The TurnType property indicates whether or not this NetworkTurn is a turn element in the network.
If the TurnType is esriNTTImplicit, then this NetworkTurn represents an implicit turn. An implicit turn is a turning movement that is implied from two adjacent edge elements where there is no turn element in the network. An implicit turn can only be returned in a NetworkTurn object by the INetworkForwardStarAdjacencies::QueryTurn method.
If the TurnType is esriNTTExplicit, then this NetworkTurn represents a turn element in the network.
getTurnType
in interface INetworkTurn
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryAtJunction(INetworkJunction junction) throws IOException, AutomationException
The QueryAtJunction method retrieves the junction element that anchors this turn element. The anchor junction of a turn element is the junction connecting the last two edges that the turn traverses.
This method requires an instantiated NetworkJunction object to be passed in as a parameter. You can create an empty NetworkTurn object by using the INetworkQuery::CreateNetworkElement method.
queryAtJunction
in interface INetworkTurn
junction
- 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 double getAngle() throws IOException, AutomationException
The Angle property returns the turning angle of the turn. The turning angle is determined by the difference in the azimuth values of the first and last edge elements of the turn.
The value returned for Angle ranges from 0 to 360. The Angle in measured clockwise from straight in degrees. Below are sample Angle values:
getAngle
in interface INetworkTurn
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 edge element that this turn traverses.
getEdgeCount
in interface INetworkTurn
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryEdge(int index, INetworkEdge edge) throws IOException, AutomationException
The QueryEdge method retrieves the edge element traversed by this turn at the specified index. The index values range from 0 to (EdgeCount - 1).
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 INetworkTurn
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 Object getAttributeValueAtTime(int attributeID, Date localTime, int timeUsage) throws IOException, AutomationException
getAttributeValueAtTime
in interface INetworkTurn2
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 |