Interface IEvaluatedNetworkAttribute

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

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

[Guid("AFB92F55-F7E1-4210-B44E-E118AC2D4D99")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IEvaluatedNetworkAttribute : INetworkAttribute

Remarks

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

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 interface, specify its evaluators using the IEvaluatedNetworkAttribute interface, and pass the object to the INetworkBuild::AddAttribute method on the network dataset.

Properties

DENetworkDataset

Evaluator used to derive values from the given network source for this network attribute.

IDENetworkDataset DENetworkDataset { get; }

Property Value

IDENetworkDataset

Examples

Sample Snippet

<pre>IDENetworkDataset GetDataElementFromNetworkDataset(INetworkDataset networkDataset)<br>{
  IDatasetComponent datasetComponent = networkDataset as IDatasetComponent;
  return (datasetComponent.DataElement as IDENetworkDataset);
}</pre>

Remarks

<p>Access the DENetworkDataset for an existing <a href="INetworkDataset.htm">INetworkDataset</a> by calling <b><a href="javascript:Jump('esriGeoDatabase/IDatasetComponent_DataElement.htm')">IDatasetComponent::DataElement</a></b>.</p>

DataType

esriNetworkAttributeDataType DataType { get; set; }

Property Value

esriNetworkAttributeDataType

DefaultEvaluator[esriNetworkElementType]

Evaluator used to derive attribute values for the given element type when an evaluator is not specified for a network element's source.

INetworkEvaluator DefaultEvaluator[esriNetworkElementType ElementType] { get; set; }

Parameters

ElementType esriNetworkElementType

Property Value

INetworkEvaluator

Remarks

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

Evaluator[INetworkSource, esriNetworkEdgeDirection]

Evaluator used to derive values from the given network source for this network attribute.

INetworkEvaluator Evaluator[INetworkSource NetworkSource, esriNetworkEdgeDirection Direction] { get; set; }

Parameters

NetworkSource INetworkSource
Direction esriNetworkEdgeDirection

Property Value

INetworkEvaluator

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.

ID

int ID { get; }

Property Value

int

IsTimeAware[esriNetworkElementType]

bool IsTimeAware[esriNetworkElementType ElementType] { get; }

Parameters

ElementType esriNetworkElementType

Property Value

bool

Name

string Name { get; set; }

Property Value

string

Parameters

IArray Parameters { get; set; }

Property Value

IArray

Units

esriNetworkAttributeUnits Units { get; set; }

Property Value

esriNetworkAttributeUnits

UsageType

esriNetworkAttributeUsageType UsageType { get; set; }

Property Value

esriNetworkAttributeUsageType

UseByDefault

bool UseByDefault { get; set; }

Property Value

bool

Methods

Refresh()

void Refresh()