Sage Modeling and Simulation Library

CountedBranchManager Constructor

Creates a counted branch manager that will fire all outbound edges with channels matching the zeroth channel, a number of times, followed by those matching the first channel another number of times, etc. The channels array and the counts array must have the same number of elements, and they are considered paired arrays - that is, the zeroth element of one goes with the zeroth element of the other, likewise the first, second, etc.

Namespace:  Highpoint.Sage.Graphs
Assembly:  Sage4 (in Sage4.dll)

Syntax


public CountedBranchManager(
	IModel model,
	Object[] channels,
	int[] counts
)

Parameters

model
Type: Highpoint.Sage.SimCore..::..IModel
The model in which this graph is running. This is necessary because the outbound edges are fired asynchronously to keep a graph's execution path from looping back over this branch manager while it is still executing.
channels
Type: array<Object>[]()[][]
An array of channel objects that determine which outbound edges will fire. IMPORTANT NOTE: Edges with null channel markers must be specified by the Edge.NullChannelMarker object.
counts
Type: array<Int32>[]()[][]
An array of integers that will determine how many times the given edges will fire.