Sage Modeling and Simulation Library

ConditionalBranchManager..::..AddBranchScenarios Method (IModel, Task, List<(Of <(<'String>)>)>, List<(Of <(<'String>)>)>, List<(Of <(<'Task>)>)>, Task, Boolean)

Registers branch conditions for branching to be performed by a Conditional Branch Manager. The first condition specified is assumed to be the one that is true.

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

Syntax


public static void AddBranchScenarios(
	IModel model,
	Task source,
	List<string> conditions,
	List<string> channels,
	List<Task> targets,
	Task master,
	bool force
)

Parameters

model
Type: Highpoint.Sage.SimCore..::..IModel
The model in which these branch scenarios will run.
source
Type: Highpoint.Sage.Graphs.Tasks..::..Task
The source task from whose post vertex the branches emit.
conditions
Type: List<(Of <(<'String>)>)>
The indexed conditions under which each channel is activated.
channels
Type: List<(Of <(<'String>)>)>
The indexed channels for each branch.
targets
Type: List<(Of <(<'Task>)>)>
The target tasks to which the branches will pass control.
master
Type: Highpoint.Sage.Graphs.Tasks..::..Task
The master edge. Null, or same as source, if source is master.
force
Type: Boolean
if set to true [force] creation of a new Conditional Branch Manager.