PhaseLogic
Description
The PhaseLogic
object represents the scenario logic in
RoadRunner Scenario. The scenario logic contains all logic components, such as phases, actions, and
conditions, for a scenario. You can use the PhaseLogic
object to
programmatically add and modify scenario logic components.
Creation
By default, all scenarios contain a PhaseLogic
object. To retrieve the
PhaseLogic
object that represents the RoadRunner scenario logic, extract the PhaseLogic
property of your
Scenario
object and assign it to a variable. For example,
rrLogic = scnro.PhaseLogic
extracts the PhaseLogic
property from the scenario scnro
and assigns it to the variable
rrLogic
.
Properties
Object Functions
initialPhaseForActor | Extract object for actor initial phase |
addPhaseInSerial | Create logic phase that executes sequentially during simulation |
addPhaseInParallel | Create logic phase that executes concurrently during simulation |
Examples
Version History
Introduced in R2025a
See Also
roadrunner
| roadrunnerAPI
| Scenario
| initialPhaseForActor
| addPhase
Topics
- Define Scenario Logic (RoadRunner Scenario)