Assignment 1

pdf

School

University of Ottawa *

*We aren’t endorsed by this school

Course

2106

Subject

Mechanical Engineering

Date

Feb 20, 2024

Type

pdf

Pages

7

Uploaded by DukeCheetahMaster1010

Report
Assignment 1: Behavioral Modeling The assignment is due on February 9 th at 11:59 pm and should be submitted on Brightspace. Question 1 – Developing Behavioural Models for a Health Checking Application (60 Points) Background Overview of the System You are tasked to design an innovative Health Checking System (HCS) in a start-up company to help individuals at risk of heart attack monitor their health. The HCS is composed of the following items: (1) a belt that goes around the patient’s chest and is equipped with a heart rate sensor , (2) a wearable activity tracker device , (3) an armband equipped with a device to measure blood pressure , and (4) a mobile phone.
The devices (i.e., the heart rate sensor , the activity tracker and the blood pressure measurer ) assess the health status and the activity level of the patient continuously. In particular, they measure the heart rate, the activity level and the blood pressure and send this information continuously to the mobile phone through a wireless (Bluetooth) connection. The phone runs a software application called Health Check App that receives all the data and process the data. Below, we first describe the details of the devices (item 1, 2, and 3 in the above list): 1) Heart Rate Sensor The heart rate sensor (HRS) operates in two modes: (1) Standard, and (2) Sensitive. When the sensor is in the Standard mode, it sends a signal containing the measured heart rate every minute to the phone application, but when it is in the Sensitive mode, it sends a signal containing the entire record obtained from the heart performance every 30 seconds. 2) Activity Tracker The activity tracker measures the activity level of the patients and sends a signal to the mobile phone every 30 seconds. The patient’s activity level can be one of the following: High Activity, Moderate Activity, and Low Activity. 3) Blood Pressure Device The blood pressure device is located on the patient arm and collect the blood pressure data on demand. Specifically, if the health check app sends a command to the blood pressure device to perform a measurement, it returns a message containing the blood pressure values. Requirements All requirements were captured using user stories as the development team is using the Scrum agile process. During requirements collection, the stakeholders identified one epic user story that they further decomposed into 8 user stories. All user stories are shown below. Epic User Story User Story: S1 As a user, I want the health check app to monitor my heart rate and blood pressure periodically and call an ambulance if I am in a critical situation.
Epic User Story Decomposition User Story: 1.1 User Story: 1.2 As a user, I want to start the health check process through my mobile phone after I wear the belt, the arm band and the activity tracker As a user, I want the system to check my heart rate and my activity level every 30 sec in the Sensitive mode, and every minute in the Normal mode. As long as my heart rate is below 100, I want the system to stay in the Normal mode. User Story: 1.3 User Story: 1.4 As a user, I want the system to move to the sensitive mode when my heart rate is above 100 and my activity level is low. As a user, I want the system to move to the sensitive mode and further collect my blood pressure when my heart rate is above 150 and my activity level is low or moderate. User Story: 1.5 As a user, I want the system to move to the sensitive mode, collect my blood pressure and call an ambulance when my heart rate is above 200 and my activity level is low or moderate since this is potentially a critical condition. User Story: 1.6 As a user, I want the system to move to the sensitive mode, collect my blood pressure and call an ambulance when my heart rate is above 250 and my activity level is low or moderate or high since this is likely a critica condition. User Story: 1.7 As a user, I want the health check system stays in the Sensitive mode whenever it enters it and only exits the sensitive mode when I explicitly request to reset the system (in which case it goes back to Normal model). User Story: 1.8 As a user, I want when the health check system is in the Sensitive mode to store all the full records that it receives from the heart rate sensor locally on my mobile phone.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Your Task 1) Develop a single activity diagram that models the overall behavior of the health check system from a high-level perspective. Focus on the actions performed by the mobile application and the devices. Notice that the various components in the system communicate by exchanging signals . It is implied that these are asynchronous signals . Make sure that you use the correct UML symbols to model this asynchronous exchange of information. Use swim lanes (partitions) to differentiate between the various components of the system. Make any assumptions necessary, as long as you do not over-simplify the system to create your model. 2) Develop a UML state machine that describes the behavior of the heart rate sensor. Be as detailed as possible and make any assumptions necessary, as long as you do not over-simplify the system to create your model.
Part 2 – Petri Nets (40 Points) Question 2.1 (12 points) – Consider the petri nets shown below. Specify whether each one is bounded and/or alive. Provide your rationale. a) b) Question 2.2 (12 points) – Consider the petri nets shown below. Specify whether each one is bounded and/or alive. Provide your rationale. a) b)
c) Question 2.3 (16 points) – Consider the petri nets shown below. Specify whether each one is bounded and/or alive. Provide your rationale. a)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
b)