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)

Syntax


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

Parameters

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