This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
dido:public:ra:xapend:xapend.a_glossary:d:decision_point [2022/02/02 17:55] nick created |
dido:public:ra:xapend:xapend.a_glossary:d:decision_point [2022/02/03 05:17] (current) nick |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| [[dido:public:ra:xapend:xapend.a_glossary:start| Return to Glossary ]] | [[dido:public:ra:xapend:xapend.a_glossary:start| Return to Glossary ]] | ||
| - | A **Decision Point** is a place in a program where the execution flow through the program is controlled. As a general rule, **Decision Points** occur at the Control Flow statements, however, the each boolean expression in the Control Flow statement is its own **Decision Point**. | + | A **Decision Point** is a place in a program where the execution flow through the program is controlled. As a general rule, **Decision Points** occur at the [[dido:public:ra:xapend:xapend.a_glossary:c:control_flow]] operations (i.e., **''IF / ELSE IF / ELSE / ENDIF''**, or **''FOR LOOPS | WHILE LOOPS /''**, etc.). However, each part of the boolean expression in the Control Flow operation is on its own, a **Decision Point**. For example: |
| - | Control flow graph where the control of the program diverges. Common examples include do-while statements, if statements, and case statements. | + | <Code cpp> |
| + | if ( A > 0 && A <=100 && B != A || B > 10000) | ||
| + | { // Do somethiing | ||
| + | } // End if | ||
| + | else | ||
| + | { // So something else | ||
| + | } // End else | ||
| + | </Code> | ||
| - | These statements are also referred to as control flow statements. | + | The **''A > 0''** is one possible path through the software, and is therefore a **Decision Point**. **''A <= 100''** is another **Decision Point**, and so and so forth. |
| - | Source: [[URI ]] | + | |
| + | Source: [[https://www.omgwiki.org/dido/doku.php?id=dido:public:ra | Defined by DIDO RA ]] | ||