com.esri.arcgis.geodatabase
Class EnumNetWeightAssociation

java.lang.Object
  extended by com.esri.arcgis.geodatabase.EnumNetWeightAssociation
All Implemented Interfaces:
IEnumNetWeightAssociation, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class EnumNetWeightAssociation
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IEnumNetWeightAssociation

A container for defining a network weight association enumeration.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
EnumNetWeightAssociation(Object obj)
          Construct a EnumNetWeightAssociation 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 getCount()
          Number of weight associations in this enumeration.
 int hashCode()
          the hashcode for this object
 INetWeightAssociation next()
          Returns the next weight association in this enumeration.
 void reset()
          Forces the enumerator pointing to the first weight association in this enumeration.
 
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

EnumNetWeightAssociation

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

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

Throws:
IOException - if there are interop problems EnumNetWeightAssociation theEnumNetWeightAssociation = (EnumNetWeightAssociation) 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

getCount

public int getCount()
             throws IOException,
                    AutomationException
Number of weight associations in this enumeration.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

reset

public void reset()
           throws IOException,
                  AutomationException
Forces the enumerator pointing to the first weight association in this enumeration.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
reset in interface IEnumNetWeightAssociation
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

next

public INetWeightAssociation next()
                           throws IOException,
                                  AutomationException
Returns the next weight association in this enumeration.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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