com.esri.arcgis.geodatabase
Class TopologyNode

java.lang.Object
  extended by com.esri.arcgis.geodatabase.TopologyNode
All Implemented Interfaces:
ITopologyElement, ITopologyNode, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class TopologyNode
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ITopologyElement, ITopologyNode

ESRI Topology Node object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
TopologyNode(Object obj)
          Construct a TopologyNode using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 int getDegree()
          The number of edges entering and leaving this node.
 IEnumNodeEdge getEdges(boolean clockwise)
          The set of topological edges incident on this node.
 IGeometry getGeometry()
          The geometry of the topology element.
 IEnumTopologyParent getParents()
          The set of parents (features) of this topology element.
 int hashCode()
          the hashcode for this object
 boolean isDegreeKnown()
          Indicates if the degree of this node is known.
 boolean isDeleted()
          Indicates if this element has been deleted from its containing topology graph.
 boolean isSelected()
          Indicates if this element is part of its containing topology graph's selected set.
 boolean isVisited()
          Indicates if the topology element has been visited.
 void queryGeometry(IGeometry geometry)
          Copies the element's geometry into the specified geometry.
 void setVisited(boolean isVisited)
          Indicates if the topology element has been visited.
 
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

TopologyNode

public TopologyNode(Object obj)
             throws IOException
Construct a TopologyNode using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to TopologyNode.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
TopologyNode o = (TopologyNode)obj; // will not work

TopologyNode o = new TopologyNode(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems TopologyNode theTopologyNode = (TopologyNode) obj;
Method Detail

equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getGeometry

public IGeometry getGeometry()
                      throws IOException,
                             AutomationException
The geometry of the topology element.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getGeometry in interface ITopologyElement
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSelected

public boolean isSelected()
                   throws IOException,
                          AutomationException
Indicates if this element is part of its containing topology graph's selected set.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
isSelected in interface ITopologyElement
Returns:
The selected
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryGeometry

public void queryGeometry(IGeometry geometry)
                   throws IOException,
                          AutomationException
Copies the element's geometry into the specified geometry.

Remarks

The Geometry parameter must be an instance of an appropriate type of geometry for the topology element being called. For example, if the topology element is a node, a new point should be created and passed as the parameter, and if the topology element is an edge, a new polyline should be created and passed as the parameter.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
queryGeometry in interface ITopologyElement
Parameters:
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDeleted

public boolean isDeleted()
                  throws IOException,
                         AutomationException
Indicates if this element has been deleted from its containing topology graph.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
isDeleted in interface ITopologyElement
Returns:
The deleted
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getParents

public IEnumTopologyParent getParents()
                               throws IOException,
                                      AutomationException
The set of parents (features) of this topology element.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getParents in interface ITopologyElement
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumTopologyParent
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isVisited

public boolean isVisited()
                  throws IOException,
                         AutomationException
Indicates if the topology element has been visited.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
isVisited in interface ITopologyElement
Returns:
The isVisited
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVisited

public void setVisited(boolean isVisited)
                throws IOException,
                       AutomationException
Indicates if the topology element has been visited.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
setVisited in interface ITopologyElement
Parameters:
isVisited - The isVisited (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEdges

public IEnumNodeEdge getEdges(boolean clockwise)
                       throws IOException,
                              AutomationException
The set of topological edges incident on this node.

Product Availability

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

Specified by:
getEdges in interface ITopologyNode
Parameters:
clockwise - The clockwise (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumNodeEdge
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDegree

public int getDegree()
              throws IOException,
                     AutomationException
The number of edges entering and leaving this node. Closed edges are counted twice.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getDegree in interface ITopologyNode
Returns:
The degree
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDegreeKnown

public boolean isDegreeKnown()
                      throws IOException,
                             AutomationException
Indicates if the degree of this node is known. Nodes constructed from edges that are partially outside the build extent have unknown degrees.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
isDegreeKnown in interface ITopologyNode
Returns:
The degreeKnown
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.