Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
lesson_13 [2019/08/21 20:31]
argemiro
lesson_13 [2020/02/11 16:49]
argemiro
Line 1: Line 1:
-{{ :logo_guidebook1.jpg?400 |}}+{{ :logo_logo.png?400 |}}
 \\ \\
 =====LESSON 13: Loop structures on Dinamica EGO=====  ​ =====LESSON 13: Loop structures on Dinamica EGO=====  ​
 \\ \\
-\\ 
-Dinamica EGO has several looping structures that can be used for various applications. \\ \\ 
-Loops are handy, if you want to run the same code over and over again, each time with a different value. Loops can execute a block of code a number of times. 
 \\ \\
 ==== What will you learn? ==== ==== What will you learn? ====
  
-  * Different Kinds of Loops on Dinamica EGO and how to work with Repetition structures.+  * What are the main repetition structures present in Dinamica EGO \\ 
 +  * What are the main auxiliary operators ​to control iterations in Dinamica EGO \\ 
 +\\  ​
 \\ \\
 +Dinamica EGO has several looping structures that can be used for various applications. Loops come in handy when you want to run the same code over and over again, each time with a different value. Loops can execute a block of code a number of times. In this lesson we will talk about different kinds of loops on Dinamica EGO and how to work with repetition structures.
 \\ \\
-===Container operators that repeat the functions within them:===+\\ 
 +===Container operators that repeat the functions within them===
 \\ \\
 \\ \\
Line 18: Line 19:
 \\ \\
 \\ \\
-**Repeat:** This container makes a set of functors, linked in a dataflow chain, iterate a number of times+**Repeat:** This container makes a set of functors, linked in a dataflow chain, iterate a predetermined ​number of times.
 \\ \\
 \\ \\
-**For:** This container makes a set of functors, linked in a dataflow chain, iterate a number of times.+**For:** This container makes a set of functors, linked in a dataflow chain, iterate ​while given condition is not met.
 \\ \\
 \\ \\
Line 33: Line 34:
 \\ \\
 \\ \\
-**While:** Checks the condition at the starting of the loop and if the condition is satisfied statement inside the loopis executed. ​+**While:** Checks the condition at the starting of the loop and if the condition is satisfied ​the statement inside the loop is executed. ​
 \\ \\
 \\ \\
 **Do while:** The condition is checked after the execution of all statements in the body of the loop. **Do while:** The condition is checked after the execution of all statements in the body of the loop.
 +\\
 \\ \\
 ===Auxiliary operators to control iterations:​=== ===Auxiliary operators to control iterations:​===
Line 44: Line 46:
 \\ \\
 \\ \\
-**Step:** This functor receives and passes on the current model step or iteration.+**Step:** This functor receives and passes on to the current model the step or iteration.
 \\ \\
 \\ \\
-**Mux Map:** This functor makes a map dynamic, feeding it back with a map output from a model step. In the beginning of the first iteration, it reads map input from the initial port.+**Mux Map:** This functor makes a map dynamic, feeding it back with a map output from a model step. In the beginning of the first iteration, it reads map input from the initial port.
 \\ \\
 \\ \\
Line 54: Line 56:
 \\ \\
 **Mux Value:** This functor initiates and feeds back a loop variable containing a value. In the beginning of the first iteration, it reads the input value from the initial port. **Mux Value:** This functor initiates and feeds back a loop variable containing a value. In the beginning of the first iteration, it reads the input value from the initial port.
 +\\
 +\\
 +\\
 +\\
 +===Congratulations,​ you have successfully completed this lesson!===
 +\\
 +\\
 +☞[[:​lesson_14 | Next Lesson]]
 +\\
 +☞[[:​guidebook_start| Back to Guidebook Start]]