addAction
Description
creates an action of the specified type and adds it as a child of the specified logic phase.
For example, rrAction = addAction(rrPhase,actionType)rrAction = addAction(rrPhase,"ChangeSpeedAction") creates an
object, rrAction, that represents the Change
Speed action type and its attributes in the RoadRunner scenario logic and assigns it to rrPhase.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a
See Also
roadrunnerAPI | addPhaseInSerial | addPhaseInParallel | SerialPhase | ParallelPhase
Topics
- RoadRunner Scenario Fundamentals (RoadRunner Scenario)
- Simulate a RoadRunner Scenario Using MATLAB Functions