CS445/ECE 451/CS645
Software Requirements Specifications & Analysis Behavioural Modelling
U Waterloo CS445/ECE451/CS645 Fall 2019 1
CS445/ECE 451/CS645 Software Requirements Specifications & - - PowerPoint PPT Presentation
CS445/ECE 451/CS645 Software Requirements Specifications & Analysis Behavioural Modelling U Waterloo CS445/ECE451/CS645 Fall 2019 1 Glossary System behavior: is how a system acts and reacts. Behavior model: a view of a system that
U Waterloo CS445/ECE451/CS645 Fall 2019 1
system as a whole (as it appears to outside users).
disjoint sets.
U Waterloo CS445/ECE451/CS645 Fall 2019 2
lifetime.
implementation
U Waterloo CS445/ECE451/CS645 Fall 2019 3
U Waterloo CS445/ECE451/CS645 Fall 2019 4
central object's perspective
this object can see and influence
for the fields; only ones that are conceptually different
U Waterloo CS445/ECE451/CS645 Fall 2019 5
triggers (potential) state change
any behavior executed during transition (optional)
except "do" activities
U Waterloo CS445/ECE451/CS645 Fall 2019 6
p:Publication, today:Date)
U Waterloo CS445/ECE451/CS645 Fall 2019 7
U Waterloo CS445/ECE451/CS645 Fall 2019 8
U Waterloo CS445/ECE451/CS645 Fall 2019 9
that event.
(if any) on that transition evaluates to TRUE.
U Waterloo CS445/ECE451/CS645 Fall 2019 10
central object takes on itself
(events that stay in same state)
U Waterloo CS445/ECE451/CS645 Fall 2019 11
U Waterloo CS445/ECE451/CS645 Fall 2019 12
U Waterloo CS445/ECE451/CS645 Fall 2019 13
1. Watch should be able to toggle between time and stopwatch mode 2. Watch should be able to toggle between 12h and 24h display 3. User should be able to start/stop timer; beep for 0.25 seconds when in stopwatch mode 4. User should be able to turn light on for 3 seconds when watch in time mode 5. Watch should record laptime; display laptime, and turn light on for 3 seconds when watch is in stopwatch mode, the timer is running and displayed. 6. Watch should reset timer, and turn light on for 3 seconds when watch is in stopwatch mode, the timer stopped and displayed. 7. Watch should display timer, and turn light on for 3 seconds when watch is in stopwatch mode, laptime is displayed.
U Waterloo CS445/ECE451/CS645 Fall 2019 14
U Waterloo CS445/ECE451/CS645 Fall 2019 15
U Waterloo CS445/ECE451/CS645 Fall 2019 16
Hierarchy is used to cluster states that have some similar behaviors / exiting transitions.
superstate’s descendent states.
U Waterloo CS445/ECE451/CS645 Fall 2019 17
U Waterloo CS445/ECE451/CS645 Fall 2019
18
Some systems have orthogonal behaviors that are best modelled as concurrent state machines
U Waterloo CS445/ECE451/CS645 Fall 2019 19
U Waterloo CS445/ECE451/CS645 Fall 2019 20
U Waterloo CS445/ECE451/CS645 Fall 2019
A transition that has no event or condition in its label is enabled when its
and idle, or
entered its final state,
finished internal activity
21
U Waterloo CS445/ECE451/CS645 Fall 2019 22
U Waterloo CS445/ECE451/CS645 Fall 2019 23
U Waterloo CS445/ECE451/CS645 Fall 2019 24
U Waterloo CS445/ECE451/CS645 Fall 2019 25
D, E) or enter state B if this is the first visit to the state’.
U Waterloo CS445/ECE451/CS645 Fall 2019 26
U Waterloo CS445/ECE451/CS645 Fall 2019 27
mechanism for when the group is entered for the first time.
appears.
necessary to use a history symbol in the lower levels.
U Waterloo CS445/ECE451/CS645 Fall 2019 28
attached to the history symbol to indicate that the history of the system should be applied all the way down to the lowest level in the state hierarchy.
U Waterloo CS445/ECE451/CS645 Fall 2019 29
U Waterloo CS445/ECE451/CS645 Fall 2019 30
U Waterloo CS445/ECE451/CS645 Fall 2019 31
U Waterloo CS445/ECE451/CS645 Fall 2019 32
U Waterloo CS445/ECE451/CS645 Fall 2019 33
interrupted.
U Waterloo CS445/ECE451/CS645 Fall 2019 34
U Waterloo CS445/ECE451/CS645 Fall 2019 35
event
U Waterloo CS445/ECE451/CS645 Fall 2019 36
same event/conditions.
happens if the guard is false?
case scenarios.
U Waterloo CS445/ECE451/CS645 Fall 2019 37
U Waterloo CS445/ECE451/CS645 Fall 2019 38
U Waterloo CS445/ECE451/CS645 Fall 2019 39
U Waterloo CS445/ECE451/CS645 Fall 2019 40
U Waterloo CS445/ECE451/CS645 Fall 2019 41
U Waterloo CS445/ECE451/CS645 Fall 2019 42