com.esri.arcgis.geodatabase
Interface INetworkAttribute2

All Superinterfaces:
INetworkAttribute, java.io.Serializable
All Known Implementing Classes:
EvaluatedNetworkAttribute, INetworkAttribute2Proxy, NetworkAttribute

public interface INetworkAttribute2
extends INetworkAttribute, java.io.Serializable

Provides access to members that specify the properties of an attribute in a network dataset.

Product Availability

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

Remarks

The INetworkAttribute and INetworkAttribute2 interfaces are used to access the properties of the network attribute, such as its name and usage type.

To access the NetworkAttribute or EvaluatedNetworkAttribute object for an existing network dataset attribute, use the Attribute, AttributeByID, or AttributeByName methods on the INetworkDataset interface.

The INetworkAttribute and INetworkAttribute2 interfaces are also used to define a new network attribute.  To create a new network attribute, cocreate a NetworkAttribute or EvaluatedNetworkAttribute object, specify its properties, and pass the object to the INetworkBuild::AddAttribute method on the network dataset.


Method Summary
 IArray getParameters()
          Array of parameters.
 boolean isUseByDefault()
          Indicates if this network attribute is to be used by default.
 void refresh()
          .
 void setParametersByRef(IArray parameters)
          Array of parameters.
 void setUseByDefault(boolean useByDefault)
          Indicates if this network attribute is to be used by default.
 
Methods inherited from interface com.esri.arcgis.geodatabase.INetworkAttribute
getDataType, getID, getName, getUnits, getUsageType, setDataType, setName, setUnits, setUsageType
 

Method Detail

getParameters

public IArray getParameters()
                     throws java.io.IOException,
                            AutomationException
Array of parameters.

Remarks

This property provides access to the IArray interface that holds the collection of NetworkAttributeParameter objects that are available for this NetworkAttribute.

 

Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setParametersByRef

public void setParametersByRef(IArray parameters)
                        throws java.io.IOException,
                               AutomationException
Array of parameters.

Parameters:
parameters - A reference to a com.esri.arcgis.system.IArray (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

refresh

public void refresh()
             throws java.io.IOException,
                    AutomationException
.

Remarks

Calling Refresh propogates the call to INetworkEvaluator2::Refresh on the attribute's underlying network evaluators that implement INetworkEvaluator2.  This gives the evaluator an opportunity to update its state based on current data or parameter values.  This method is called by the network analyst solvers after setting INetworkAttribute2::Parameters prior to performing the solve operation.

Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isUseByDefault

public boolean isUseByDefault()
                       throws java.io.IOException,
                              AutomationException
Indicates if this network attribute is to be used by default.

Remarks

If the UseByDefault property is set to True for a NetworkAttribute, the network attribute will automatically be set as an option (e.g., impedance, restriction, hierarchy) when a new network analysis layer is created in ArcMap.

Returns:
The useByDefault
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setUseByDefault

public void setUseByDefault(boolean useByDefault)
                     throws java.io.IOException,
                            AutomationException
Indicates if this network attribute is to be used by default.

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