This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkForwardStarEx Interface > INetworkForwardStarEx.AdjustEdgeAttributeValue Method (ArcObjects .NET 10.4 SDK) |
Adjusts the value of a network attribute for a range on an edge element.
[Visual Basic .NET] Public Sub AdjustEdgeAttributeValue ( _ ByVal Edge As INetworkEdge, _ ByVal fromPosition As Double, _ ByVal toPosition As Double, _ ByVal Attribute As INetworkAttribute, _ ByVal adjustmentType As esriNetworkAttributeAdjustmentType, _ ByVal Value As Object _ )
[C#] public void AdjustEdgeAttributeValue ( INetworkEdge Edge, double fromPosition, double toPosition, INetworkAttribute Attribute, esriNetworkAttributeAdjustmentType adjustmentType, object Value );
[C++]
HRESULT AdjustEdgeAttributeValue(
INetworkEdge* Edge,
double fromPosition,
double toPosition,
INetworkAttribute* Attribute,
esriNetworkAttributeAdjustmentType adjustmentType,
VARIANT Value
);
[C++]
Parameters Edge [in]
Edge is a parameter of type INetworkEdge fromPosition [in] fromPosition is a parameter of type double toPosition [in] toPosition is a parameter of type double Attribute [in]
Attribute is a parameter of type INetworkAttribute adjustmentType [in]
adjustmentType is a parameter of type esriNetworkAttributeAdjustmentType Value [in] Value is a parameter of type VARIANT
AdjustEdgeAttributeValue applies attribute adjustments along a given range for the input edge. Multiple, disjoint partial-edge attribute adjustments may be applied to the same edge. The RemoveAttributeAdjustments method can be used for removing all element-specific attribute adjustments.
Attribute adjustments at the NetworkForwardStar level allow dynamically adjusting network attribute values at runtime. For example, it is possible to add a constant value to a cost attribute or scale a cost attribute by a constant factor, as well as dynamically replacing attribute values.
Please see the help for esriNetworkAttributeAdjustmentType for attribute adjustment usage protocols, including rules for overlapping attribute adjustments along an edge.