Question: Software Requirements In this assignment, we will be commencing an implementation of COVID-19 monitoring and alert system. In particular, we shall developing the building blocks






Software Requirements In this assignment, we will be commencing an implementation of COVID-19 monitoring and alert system. In particular, we shall developing the building blocks for our desired system. The pandemic has hit hard and affected the way we conduct our day-to-day businesses. Besides, the economy is bleeding and needs urgent rescue strategies be deployed to ensure we return to normalcy. This system will monitor COVID-19 in your neighborhood. It assumes there is a web service designated as a source of information about all persons in Canada (including) their COVID status. Information stored include: name, age, ser, address and a unique identifier (which could be a Social Insurance Number - SIN). Allowed values for sex include: male, female or unknown (when a person prefers not to specify) An address is characterized with unit number, street number, street name, postal code, city, province and type. Allowed values for address type are business, home, office. As everyone is at the risk of contracting COVID-19, we allowed the following values for effective monitoring - positive, negative, symptomatic (people with some COVID symptoms but are negative), asymptomatic (people that are confirmed COVID positive but are not showing related symptoms), and unknown. In addition, we introduce two shapes - rectangle and circle for the purpose of determining the proximity of infection and effectively disseminate orders and warning messages. The dissemination of information is based on an operational radius (which may be based on a policy). Whenever there is an infection, all the persons enclosed in the bounding rectangle of the operational radius are notified. Depending on the cluster of infections, an alert about order or warning is issued by our 1. The model in figure 1 is a conceptual representation of a neighborhood. While red denotes people with confirmed positive COVID cases. In our case, these are people whose status is either positive or asymptomatic. Yellow is designated for people showing symptoms, while green designates people who neither show symptoms nor COVID positive. Our goal is to develop the code corresponding to these domain and implement the system in question. bounding rectangle Y2 +y (axis) (X1. 2) (x2.12) X2 operational radius -X axis +x (axis) (X1.91) -y (axis) (X271) y1 Figure 1: Conceptual model a neighborhood - showing infections 2. It figure 2, we present a domain model which represents the internal structure of system. It is represented in a unified modelling notation with the goal of helping you understand the underlying structure and to help you navigate the code. You are required to provide implementations for the following: Location Class constructors accessor methods (getters and setters - for each instance variable) an overload of equall...) method an overload of toString(...) method (see the output for acceptable format) Circle Class constructors accessor methods (getters and setters - for each instance variable) an overload of equal(...) method abstract Shape 1 + area(): double + perimeter) : double + bounding Rectangle(): Rectangle + equals(Shape): boolean + toString(): String Location longitude: double latitude: double centrePoint 1 + equals(): boolean + toString(): String Person identity : int name : String age: double sex : Sex status : Status + equals(Person): boolean + toString(): String Rectangle length : double width: double Circle radius: double 1 + area(): double + perimeter(): double + bounding Rectangle(): Rectangle + equals(Shape): boolean + toString : String + area(): double + perimeter(): double + boundingRectangle(): Rectangle + equals(shape): boolean + toString(): String 1..2 Address unit: int streetNumber : int streetName : String postalCode : String city: String province : String type : Type + equals(Address) : boolean + toString(): String Figure 2: COVID-19 Alert and Monitoring Domain Model an overload of toString(...) method (see the output for acceptable format) specialized implementations for the following: - double perimeter(...) - 2nr - double area(...) - #r2 - Rectangle bounding Rectangle(...) returns rectangle whose length = width = 2r. Rectangle Class constructors accessor methods (getters and setters - for each instance variable) an overload of equall...) method an overload of toString(...) method (see the output for acceptable format) specialized implementations for the following: - double perimeter(...) which is 2(l+b) - double area(...) which is l *b - Rectangle bounding Rectangle(...) - returns itself. Address Class constructors accessor methods (getters and setters - for each instance variable) an overload of equall...) method an overload of toString(...) method (see the output for acceptable format) Person Class constructors accessor methods (getters and setters - for each instance variable) an overload of equal...) method an overload of toString(...) method (see the output for acceptable format) C:\Users\adesino\Documents\UFV\COMP 155 Assignments\A2\codes>javac -d . *.java C:\Users\adesino\Documents\UFV\COMP 155\Assignments\A2\codes>java Tracker Test @(Q1) passed. [Alloted point(s): 13.a) Test 1 (02) passed. [Alloted point(s): 15.0] Test 2 (03) passed. [Alloted point(s): 15.0] Test 3 (04) passed. [Alloted point(s): 20.0] Test 4 (05) passed. [Alloted point(s): 27.a) All tests are successful. Total points earned in this lab: 99.0 points Testing the location object... Located at: [longitude: 2.345678, latitude: 3.98756] Testing the circle object... Circle: [radius: 25.67, Located at: [longitude: 2.345678, latitude: 3.98756]] Testing the rectangle object... Rectangle: [length: 2.e, width: 2.0, Located at: [longitude: 2.8, latitude: 6.0]] Testing the address object... BUSINESS: 45-27567, James Avenue, Abbotsford, BC V2T @H9 Testing the person object... Full Name : Opeyemi Adesina Age: 21.0 years Sex: MALE Covid-19 Status: NEGATIVE Contact Address(es): BUSINESS: 45-27567, James Avenue, Abbotsford, BC V2T H9 HOME: 45-27567, James Avenue, Abbotsford, QC VZT @H9 Figure 3: Expected Output Software Requirements In this assignment, we will be commencing an implementation of COVID-19 monitoring and alert system. In particular, we shall developing the building blocks for our desired system. The pandemic has hit hard and affected the way we conduct our day-to-day businesses. Besides, the economy is bleeding and needs urgent rescue strategies be deployed to ensure we return to normalcy. This system will monitor COVID-19 in your neighborhood. It assumes there is a web service designated as a source of information about all persons in Canada (including) their COVID status. Information stored include: name, age, ser, address and a unique identifier (which could be a Social Insurance Number - SIN). Allowed values for sex include: male, female or unknown (when a person prefers not to specify) An address is characterized with unit number, street number, street name, postal code, city, province and type. Allowed values for address type are business, home, office. As everyone is at the risk of contracting COVID-19, we allowed the following values for effective monitoring - positive, negative, symptomatic (people with some COVID symptoms but are negative), asymptomatic (people that are confirmed COVID positive but are not showing related symptoms), and unknown. In addition, we introduce two shapes - rectangle and circle for the purpose of determining the proximity of infection and effectively disseminate orders and warning messages. The dissemination of information is based on an operational radius (which may be based on a policy). Whenever there is an infection, all the persons enclosed in the bounding rectangle of the operational radius are notified. Depending on the cluster of infections, an alert about order or warning is issued by our 1. The model in figure 1 is a conceptual representation of a neighborhood. While red denotes people with confirmed positive COVID cases. In our case, these are people whose status is either positive or asymptomatic. Yellow is designated for people showing symptoms, while green designates people who neither show symptoms nor COVID positive. Our goal is to develop the code corresponding to these domain and implement the system in question. bounding rectangle Y2 +y (axis) (X1. 2) (x2.12) X2 operational radius -X axis +x (axis) (X1.91) -y (axis) (X271) y1 Figure 1: Conceptual model a neighborhood - showing infections 2. It figure 2, we present a domain model which represents the internal structure of system. It is represented in a unified modelling notation with the goal of helping you understand the underlying structure and to help you navigate the code. You are required to provide implementations for the following: Location Class constructors accessor methods (getters and setters - for each instance variable) an overload of equall...) method an overload of toString(...) method (see the output for acceptable format) Circle Class constructors accessor methods (getters and setters - for each instance variable) an overload of equal(...) method abstract Shape 1 + area(): double + perimeter) : double + bounding Rectangle(): Rectangle + equals(Shape): boolean + toString(): String Location longitude: double latitude: double centrePoint 1 + equals(): boolean + toString(): String Person identity : int name : String age: double sex : Sex status : Status + equals(Person): boolean + toString(): String Rectangle length : double width: double Circle radius: double 1 + area(): double + perimeter(): double + bounding Rectangle(): Rectangle + equals(Shape): boolean + toString : String + area(): double + perimeter(): double + boundingRectangle(): Rectangle + equals(shape): boolean + toString(): String 1..2 Address unit: int streetNumber : int streetName : String postalCode : String city: String province : String type : Type + equals(Address) : boolean + toString(): String Figure 2: COVID-19 Alert and Monitoring Domain Model an overload of toString(...) method (see the output for acceptable format) specialized implementations for the following: - double perimeter(...) - 2nr - double area(...) - #r2 - Rectangle bounding Rectangle(...) returns rectangle whose length = width = 2r. Rectangle Class constructors accessor methods (getters and setters - for each instance variable) an overload of equall...) method an overload of toString(...) method (see the output for acceptable format) specialized implementations for the following: - double perimeter(...) which is 2(l+b) - double area(...) which is l *b - Rectangle bounding Rectangle(...) - returns itself. Address Class constructors accessor methods (getters and setters - for each instance variable) an overload of equall...) method an overload of toString(...) method (see the output for acceptable format) Person Class constructors accessor methods (getters and setters - for each instance variable) an overload of equal...) method an overload of toString(...) method (see the output for acceptable format) C:\Users\adesino\Documents\UFV\COMP 155 Assignments\A2\codes>javac -d . *.java C:\Users\adesino\Documents\UFV\COMP 155\Assignments\A2\codes>java Tracker Test @(Q1) passed. [Alloted point(s): 13.a) Test 1 (02) passed. [Alloted point(s): 15.0] Test 2 (03) passed. [Alloted point(s): 15.0] Test 3 (04) passed. [Alloted point(s): 20.0] Test 4 (05) passed. [Alloted point(s): 27.a) All tests are successful. Total points earned in this lab: 99.0 points Testing the location object... Located at: [longitude: 2.345678, latitude: 3.98756] Testing the circle object... Circle: [radius: 25.67, Located at: [longitude: 2.345678, latitude: 3.98756]] Testing the rectangle object... Rectangle: [length: 2.e, width: 2.0, Located at: [longitude: 2.8, latitude: 6.0]] Testing the address object... BUSINESS: 45-27567, James Avenue, Abbotsford, BC V2T @H9 Testing the person object... Full Name : Opeyemi Adesina Age: 21.0 years Sex: MALE Covid-19 Status: NEGATIVE Contact Address(es): BUSINESS: 45-27567, James Avenue, Abbotsford, BC V2T H9 HOME: 45-27567, James Avenue, Abbotsford, QC VZT @H9 Figure 3: Expected Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
