Download presentation
Presentation is loading. Please wait.
1
SoITS assignment 4 Thomas Loftager Nielsen Lasse Deleuran Jacob Mahler-Andersen Group 1
2
State Transition table for reservation system: EventCurrent stateActionsNext State Register check in(s,g) NotCheckedIn(1,s)registerCheckIn(s,g)ShowAllCheckedIn(s) NotCheckedIn(n,s)registerCheckIn(s,g)NotCheckedIn(n-1,s) make reservation(s,r)reservations(R,s)reserve(s,r)reservations(R+r,s) Reservation r has ended reservations(R,s)endReservation(s,r)reservations(R\r,s) Similar with remove and change.
3
Statecharts 1/2 ShowAllCheckedIn NotCheckedIn exit / countdown (n) Guest checks in [n = 0 & hasReservation(g)] /check in Guest checks in [n > 0 & hasReservation(g)] /check in g = guest n = count
4
Statecharts 2/2 Reserved ReadyForReservation Reserve [check(r)] /reserver r = reservation EndedReservation [cancel] /remove [timeout] /remove
5
STT for stimulus/response: EventCurrent stateActionsNext State check in(s,g)CheckedIn(G,s)checkReservation(s,g) CheckedIn(G\g,s), registerCheckIn(s,g), checkSuccess(s,g), notifyOnAll(s,G) CheckedIn(G\g,s) request(s,r)reservations(R,s)check(r,s), reserve(s,r) reservations(R+r,s) Reservation r has ended reservations(R,s)endReservation(s,r)reservations(R\r,s)
6
Assumption descriptions Check in: Guests don’t register twice Make Reservation: NONE Reservation end: Time consistent
7
Statechart of Workflow
8
System Engineering Argument S and A entail E: Properties S from diagrams above Assertions about the environment Behaviour properties E of system
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.