com.esri.arcgis.geodatabase
Interface IEvaluatedNetworkAttribute

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

public interface IEvaluatedNetworkAttribute
extends INetworkAttribute, java.io.Serializable

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

Product Availability

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

Remarks

The IEvaluatedNetworkAttribute interface is used to access the default and source evaluators of the evaluated network attribute.

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

The IEvaluatedNetworkAttribute interface is also used to define a new network attribute.  To create a new network attribute, cocreate an EvaluatedNetworkAttribute object, specify its properties using the INetworkAttribute and INetworkAttribute2 interfaces, specify its evaluators using the IEvaluatedNetworkAttribute interface, and pass the object to the INetworkBuild::AddAttribute method on the network dataset.


Method Summary
 INetworkEvaluator getDefaultEvaluator(int elementType)
          Evaluator used to derive attribute values for the given element type when an evaluator is not specified for a network element's source.
 INetworkEvaluator getEvaluator(INetworkSource networkSource, int direction)
          Evaluator used to derive values from the given network source for this network attribute.
 void setDefaultEvaluatorByRef(int elementType, INetworkEvaluator evaluator)
          Evaluator used to derive attribute values for the given element type when an evaluator is not specified for a network element's source.
 void setEvaluatorByRef(INetworkSource networkSource, int direction, INetworkEvaluator evaluator)
          Evaluator used to derive values from the given network source for this network attribute.
 
Methods inherited from interface com.esri.arcgis.geodatabase.INetworkAttribute
getDataType, getID, getName, getUnits, getUsageType, setDataType, setName, setUnits, setUsageType
 

Method Detail

setDefaultEvaluatorByRef

public void setDefaultEvaluatorByRef(int elementType,
                                     INetworkEvaluator evaluator)
                              throws java.io.IOException,
                                     AutomationException
Evaluator used to derive attribute values for the given element type when an evaluator is not specified for a network element's source.

Parameters:
elementType - A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
evaluator - A reference to a com.esri.arcgis.geodatabase.INetworkEvaluator (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDefaultEvaluator

public INetworkEvaluator getDefaultEvaluator(int elementType)
                                      throws java.io.IOException,
                                             AutomationException
Evaluator used to derive attribute values for the given element type when an evaluator is not specified for a network element's source.

Remarks

The NetworkFieldEvaluator cannot be used as a DefaultEvaluator for any element type.

Parameters:
elementType - A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.INetworkEvaluator
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setEvaluatorByRef

public void setEvaluatorByRef(INetworkSource networkSource,
                              int direction,
                              INetworkEvaluator evaluator)
                       throws java.io.IOException,
                              AutomationException
Evaluator used to derive values from the given network source for this network attribute.

Parameters:
networkSource - A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)
direction - A com.esri.arcgis.geodatabase.esriNetworkEdgeDirection constant (in)
evaluator - A reference to a com.esri.arcgis.geodatabase.INetworkEvaluator (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEvaluator

public INetworkEvaluator getEvaluator(INetworkSource networkSource,
                                      int direction)
                               throws java.io.IOException,
                                      AutomationException
Evaluator used to derive values from the given network source for this network attribute.

Remarks

If the NetworkSource parameter is an EdgeFeatureSource, then you must specify in the Direction parameter the traversal direction for which this evaluator applies (esriNEDAlongDigitized or esriNEDAgainstDigitized).

If the NetworkSource parameter is not an EdgeFeatureSource, then specify esriNEDNone for the Direction parameter.

Parameters:
networkSource - A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)
direction - A com.esri.arcgis.geodatabase.esriNetworkEdgeDirection constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.INetworkEvaluator
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.