-
Notifications
You must be signed in to change notification settings - Fork 3
ModelEntities Function
The Function entity represents a portion of workload that can be called from elsewhere in the behaviour aspect. The execution of this workload can be influenced by adding an Input Parameter Group that can be used to drive the internal workload's behaviour. Similarly, a value can be returned to the the area from which the function was called through the use of a Return Parameter Group.
Any variables created inside of a Function are locally scoped; that is they are not accessible to any code outside of that Function and will no longer be able to be accessed once the Function ends.
The Function example on the right is equivalent to the following C++ code:
int getSum (std::vector<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:
Can adopt the below entites:
-
Boolean Expression
-
Code
-
For Loop
-
Function Call
-
If Statement
-
Input Parameter Group
-
Return Parameter Group
-
Setter
-
Variable
-
While Loop
This entity does not have any dependent entities.
This entity does not depend on any entities.
- icon - sets the icon used by the Function in MEDEA
- operation - sets the function name
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