Sage Modeling and Simulation Library

ConditionalBranchManager Methods

The ConditionalBranchManager type exposes the following members.

Methods


  Name Description
Public method AddBranchScenario
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.
Public method AddBranchScenarios(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.
Public method Static member AddBranchScenarios(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.
Public method ClearBranches
Clears the list of branch data, essentially removing all branches from this manager.
Public method Static member ClearBranchesFor
Clears the conditional branch data for the provided task.
Public method Static member CreateBranchLink
Creates a branch link from one task's post vertex to another task's preVertex.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method FireIfAppropriate
Schedules the presented edge to be fired if the edge's channel matches the currently active channel.
Public method Static member For
Gets the Conditional Branch Manager for a given task.
Public method Static member FromXml
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Start
This is fired once at the beginning of a branch manager's being asked to review a set of edges, which happens immediately after a vertex is satisfied.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method Static member ToXmlString