This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalysis > ESRI.ArcGIS.NetworkAnalysis > Interfaces > IT > ITraceFlowSolver2 Interface > ITraceFlowSolver2.FindAccumulation Method (ArcObjects .NET 10.4 SDK) |
Finds the total cost of all reachable network elements based on the specified flow method.
[Visual Basic .NET] Public Sub FindAccumulation ( _ ByVal flowMethod As esriFlowMethod, _ ByVal flowElements As esriFlowElements, _ ByRef junctionEIDs As IEnumNetEID, _ ByRef edgeEIDs As IEnumNetEID, _ ByRef pTotalCost As Object _ )
[C#] public void FindAccumulation ( esriFlowMethod flowMethod, esriFlowElements flowElements, ref IEnumNetEID junctionEIDs, ref IEnumNetEID edgeEIDs, ref object pTotalCost );
[C++]
HRESULT FindAccumulation(
esriFlowMethod flowMethod,
esriFlowElements flowElements,
IEnumNetEID** junctionEIDs,
IEnumNetEID** edgeEIDs,
VARIANT* pTotalCost
);
[C++]
Parameters flowMethod [in]
flowMethod is a parameter of type esriFlowMethod flowElements [in]
flowElements is a parameter of type esriFlowElements junctionEIDs [out]
junctionEIDs is a parameter of type IEnumNetEID edgeEIDs [out]
edgeEIDs is a parameter of type IEnumNetEID pTotalCost [out] pTotalCost is a parameter of type VARIANT
The FlowMethod parameter determines whether the trace solver traces upstream, downstream, or on all connected edges. If you would like to allow or restrict tracing on edges with indeterminate or uninitialized flow, be sure to set the ITraceFlowSolver::TraceIndeterminateFlow property prior to calling this trace solver.
The flowElements parameter determines whether edge elements, junction elements, or both are returned by the trace solver.
The trace solver will return the traced junction and edge element IDs in the junctionEIDs and edgeEIDs parameters respectively, and will return the total cost of the traced elements in the pTotalCost parameter.