com.esri.arcgis.geodatabase
Interface INetWeightEdit

All Superinterfaces:
INetWeight, Serializable
All Known Implementing Classes:
NetWeight

public interface INetWeightEdit
extends INetWeight, Serializable

Provides access to members that set information for this NetWeight object.

Remarks

To add this weight to your logical network you need to use INetSchemaEdit::AddWeight .

The INetWeightEdit interface is only for adding weights to a stand-alone logical network. For creating weights when building a geometric network, use the Build Geometric Network Wizard, or the AddWeight method on the NetworkLoader object.

When To Use

Use the INetWeightEdit interface for specifying parameters for a new weight to be added to a stand-alone logical network. When adding a weight to a logical network you can use this object to specify its WeightName, WeightType, and BitGateSize. A BitGateSize is only needed for bitgate weights.

Product Availability

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

See Also:
INetWeightEdit, INetWeightAssociation, INetWeightAssociationEdit, INetWeight

Method Summary
 void setBitGateSize(int rhs1)
          Bit gate size of this NetWeight object.
 void setWeightName(String rhs1)
          Name of this NetWeight object.
 void setWeightType(int rhs1)
          Type of network weight of this NetWeight object.
 
Methods inherited from interface com.esri.arcgis.geodatabase.INetWeight
getBitGateSize, getWeightID, getWeightName, getWeightType
 

Method Detail

setWeightName

void setWeightName(String rhs1)
                   throws IOException,
                          AutomationException
Name of this NetWeight object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWeightType

void setWeightType(int rhs1)
                   throws IOException,
                          AutomationException
Type of network weight of this NetWeight object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - A com.esri.arcgis.geodatabase.esriWeightType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBitGateSize

void setBitGateSize(int rhs1)
                    throws IOException,
                           AutomationException
Bit gate size of this NetWeight object.

Remarks

BitGateSize can only be accessed if the WeightType property is esriWTBitGate.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.