com.esri.arcgis.geodatabase
Class NetworkTurn

java.lang.Object
  extended by com.esri.arcgis.geodatabase.NetworkTurn
All Implemented Interfaces:
INetworkElement, INetworkTurn, INetworkTurn2, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, java.io.Serializable

public class NetworkTurn
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, INetworkElement, INetworkTurn, INetworkTurn2, ISupportErrorInfo

COM Class 'NetworkTurn'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabase.olb'

Description 'A container for querying information on a network dataset turn element.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geodatabase.INetworkTurn2
DISPID_1610874880_GET_NAME, IID, IIDfc74a0bd_1fa9_4669_a9fe_02833ff07547, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.INetworkTurn
DISPID_100_GET_NAME, DISPID_110_NAME, DISPID_120_GET_NAME, DISPID_130_GET_NAME, DISPID_140_NAME, IIDe284790c_e7b0_40c5_8ea8_146323bedefa
 
Fields inherited from interface com.esri.arcgis.geodatabase.INetworkElement
DISPID_10_GET_NAME, DISPID_20_GET_NAME, DISPID_30_GET_NAME, DISPID_40_GET_NAME, DISPID_50_GET_NAME, DISPID_60_GET_NAME, IIDed843586_99b4_4e36_9684_5bec34938906
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
NetworkTurn(java.lang.Object obj)
          Construct a NetworkTurn using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 double getAngle()
          Angle of the turning movement described by this network turn.
 java.lang.Object getAttributeValue(int attributeID)
          Value of this network element for the given network attribute ID.
 java.lang.Object getAttributeValueAtTime(int attributeID, java.util.Date localTime, int timeUsage)
          Value of this network element for the given network attribute ID and local time.
 java.lang.Object getAttributeValueByName(java.lang.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.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 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.
 void release()
          Release a NetworkTurn.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkTurn

public NetworkTurn(java.lang.Object obj)
            throws java.io.IOException
Construct a NetworkTurn using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to NetworkTurn.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
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

Throws:
java.io.IOException - if there are interop problems NetworkTurn theNetworkTurn = (NetworkTurn) obj;
Method Detail

equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a NetworkTurn.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getEID

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

Specified by:
getEID in interface INetworkElement
Returns:
The eID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElementType

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

Specified by:
getElementType in interface INetworkElement
Returns:
A com.esri.arcgis.geodatabase.esriNetworkElementType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSourceID

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

Specified by:
getSourceID in interface INetworkElement
Returns:
The sourceID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOID

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

Specified by:
getOID in interface INetworkElement
Returns:
The oID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributeValue

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

Specified by:
getAttributeValue in interface INetworkElement
Parameters:
attributeID - The attributeID (in)
Returns:
A Variant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributeValueByName

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

Specified by:
getAttributeValueByName in interface INetworkElement
Parameters:
attributeName - The attributeName (in)
Returns:
A Variant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTurnType

public int getTurnType()
                throws java.io.IOException,
                       AutomationException
Type of network turn.

Specified by:
getTurnType in interface INetworkTurn
Returns:
A com.esri.arcgis.geodatabase.esriNetworkTurnType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryAtJunction

public void queryAtJunction(INetworkJunction junction)
                     throws java.io.IOException,
                            AutomationException
Queries the at-junction of this network turn.

Specified by:
queryAtJunction in interface INetworkTurn
Parameters:
junction - A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAngle

public double getAngle()
                throws java.io.IOException,
                       AutomationException
Angle of the turning movement described by this network turn.

Specified by:
getAngle in interface INetworkTurn
Returns:
The angle
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEdgeCount

public int getEdgeCount()
                 throws java.io.IOException,
                        AutomationException
Number of network edge elements that participate in this network turn.

Specified by:
getEdgeCount in interface INetworkTurn
Returns:
The edgeCount
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryEdge

public void queryEdge(int index,
                      INetworkEdge edge)
               throws java.io.IOException,
                      AutomationException
Queries the index'th edge element of this network turn.

Specified by:
queryEdge in interface INetworkTurn
Parameters:
index - The index (in)
edge - A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributeValueAtTime

public java.lang.Object getAttributeValueAtTime(int attributeID,
                                                java.util.Date localTime,
                                                int timeUsage)
                                         throws java.io.IOException,
                                                AutomationException
Value of this network element for the given network attribute ID and local time.

Specified by:
getAttributeValueAtTime in interface INetworkTurn2
Parameters:
attributeID - The attributeID (in)
localTime - The localTime (in)
timeUsage - A com.esri.arcgis.geodatabase.esriNetworkTimeUsage constant (in)
Returns:
A Variant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.