Sage Modeling and Simulation Library

ConditionalBranchManager..::..AddBranchScenario Method

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 AddBranchScenario(
	IModel model,
	string condition,
	string channel,
	Task target,
	Task master
)

Parameters

model
Type: Highpoint.Sage.SimCore..::..IModel
The model in which this branch scenario will run.
condition
Type: String
The branch condition of this scenario.
channel
Type: String
The channel that describes this branch.
target
Type: Highpoint.Sage.Graphs.Tasks..::..Task
The target to which this branch goes.
master
Type: Highpoint.Sage.Graphs.Tasks..::..Task
The master task, if there is one.