-
Notifications
You must be signed in to change notification settings - Fork 3
ModelEntities ForLoop
The For Loop entity executes the chain of workload it contains until the Boolean Expression in the left section is satisfied. A Variable Parameter, a Boolean Expression, and a Setter entity are automatically constructed when a For Loop is constructed. The image on the right displays what a For Loop looks like when it is first constructed.
The For Loop example on the right is equivalent to the following C++ code:
int getSum (std::vetor<int> values) {
int sum = 0;
int Length = values.size();
for (int i = 0; i < Length; i++) {
sum += values[i];
}
return sum;
}
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