Top Banner
Decision points
16
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Storyboard decision points

Decision points

Page 2: Storyboard decision points

IF amount>1000 THEN

assess by supervisor

IF not in stock THEN

order

IF number of books > 8 OR sum ≥ 100 THEN extra

discount

A decision point is a a combination of one or more conditions

that define the conditions for the various possibilities in the

subsequent system behaviour.

Page 3: Storyboard decision points

IF number of books > 8 THEN extra

discount

Page 4: Storyboard decision points

IF number of books > 8 THEN extra

discount

Test situations

Number of books

Result

Page 5: Storyboard decision points

Test situations 1 2

Number of books >8 ≤8

Result true false

IF number of books > 8 THEN extra

discount

Singular conditions lead to 2 test situations

Page 6: Storyboard decision points

Test situations 1 2

Number of books >8 ≤8

Result 1 0

IF number of books > 8 THEN extra

discount

In Boolean algebra a “1” is used to represent “true”

Page 7: Storyboard decision points

Test situations 1 2

Number of books >8 ≤8

Result 1 0

IF number of books > 8 THEN extra

discount

In Boolean algebra a “0” is used to represent “false”

Page 8: Storyboard decision points

Decision points may consist of a combination of

conditions

IF number of books > 8

ORsum ≥ 100 THEN extra

discount

IF number of books > 8THEN extra

discount

Page 9: Storyboard decision points

A B

IF number of books > 8 OR sum ≥ 100 THEN extra discount

Page 10: Storyboard decision points

IF number of books > 8 OR sum ≥ 100 THEN extra discount

Abbreviated notation

A OR B

Page 11: Storyboard decision points

IF number of books > 8 AND sum ≥ 100 THEN extra discount

IF number of books > 8 OR sum ≥ 100 THEN extra discount

Abbreviated notation

A OR B

Abbreviated notation

A AND B

Page 12: Storyboard decision points

Complete

decision table

A B

1 1

1 0

0 1

0 0

Based on two conditions we get these possible

combinations

Page 13: Storyboard decision points

A B

1 1

1 0

0 1

0 0

The end result depends on the operators AND and OR

Page 14: Storyboard decision points

Truth table

A B A OR B

1 1 1

1 0 1

0 1 1

0 0 0With the operator OR the end

result is ONLY false when both conditions are false

This table shows the outcome of all situations of a full

decision tale. Such a table is called a truth table.

Page 15: Storyboard decision points

Truth table

A B A AND B

1 1 1

1 0 0

0 1 0

0 0 0

Truth table

A B A OR B

1 1 1

1 0 1

0 1 1

0 0 0

With the operator AND the end result is ONLY true when

both conditions are false

Page 16: Storyboard decision points

Truth table

A B C (A AND B) OR C

1 1 1 1

1 1 0 1

1 0 1 1

1 0 0 0

0 1 1 1

0 1 0 0

0 0 1 1

0 0 0 0

A combined decisionthere may be different operators. When there are no brackets

AND proceeds OR