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)


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


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.
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.
Type: array<Int32>[]()[][]
An array of integers that will determine how many times the given edges will fire.