Sage Modeling and Simulation Library

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

Adds branch scenarios, which consist of a set of conditions and correlating edge channels that will be fired for the first condition that evaluates to true (Currently, the first one specified is the one that actually runs. If a master task is specified, then that task's evaluation of its conditions will be used to guide the selection of which edge fires on this task.

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


public void AddBranchScenarios(
	IModel model,
	List<string> conditions,
	List<string> channels,
	List<Task> targets,
	Task master


Type: Highpoint.Sage.SimCore..::..IModel
The model in which this branch scenario will run.
Type: List<(Of <(<'String>)>)>
The branch conditions of each scenario.
Type: List<(Of <(<'String>)>)>
The channels that describe each branch.
Type: List<(Of <(<'Task>)>)>
The targets to which each branch goes.
Type: Highpoint.Sage.Graphs.Tasks..::..Task
The master task, if there is one.