-
Notifications
You must be signed in to change notification settings - Fork 3
ModelEntities WhileLoop
The While Loop entity repeatedly executes the chain of workload it contains while the Boolean Expression in the left section evaluates to true. A Boolean Expression entity is automatically constructed when a While Loop is constructed. The image on the right displays what a While Loop looks like when it is first constructed.
The While Loop example on the right is equivalent to the following C++ code:
void tick () {
bool work_finished = false;
while (work_finished == false) {
work_finished = CustomWorkClass::doWork(); // doWork() returns a bool stating whether all the work is done
}
}
Can be adopted by the below entities:
-
Periodic Port
-
Subscriber Port Impl
-
Replier Port Impl
-
Function
-
Transition Function
-
For Loop
-
While Loop
-
If Statement
-
If Condition
-
Else If Condition
-
Else Condition
Can adopt the below entities:
-
Boolean Expression
-
Code
-
For Loop
-
Function Call
-
If Statement
-
Publisher Port Impl
-
Requester Port Impl
-
Setter
-
Variable
-
While Loop
This entity does not have any dependent entities.
This entity does not depend on any entities.
This entity does not have any editable data fields.
This entity does not have any visible edges attached to it.
Generated on 11 Feb 2021 @ 17:34:14 by Jenkins - MediaWiki2GitHubWiki
- Model Entities
- Loading and Saving Projects
- Modelling Quality of Service
- Workers
- Validation and Code Generation Functionality
- Jenkins Functionality
- Logging Functionality
- Toolbars
- Data Table
- Dock
- Search
- Notification Manager
- View Manager
- Settings
- App Shortcuts
- Code Editor
- Code Browser
- Execution Monitor
- QoS Browser
- Trigger Browser