Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather...

27
Prepared by : Ahmad Mujahid Ubaidilllah Zakaria Weather Station Case Study

Transcript of Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather...

Page 1: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Prepared by :

Ahmad Mujahid Ubaidilllah Zakaria

Weather Station Case Study

Page 2: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Overall system organization Weather Station

Weather information system

Weather data archive

WS1 WS2 WS3 WS.. WSn

Satellite information

Weather radar

information

Page 3: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

System context for the weather station

Page 4: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Weather station characteristics

Must be self-contained and completely autonomous Integral power supplies and power generation

Satellite communications

Ruggedized to tolerate extreme weather

Self-testing

May exist in several version for different types of deployment

o Highland areas based on wind power

o Desert areas based on solar power

Remote control to support autonomous operation

Dynamic software re-configuration

Page 5: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Installed instruments

Anemometer – wind speed measurement

Barometer – air pressure measurement

Ground and air thermometers

Rain/precipitation gauge

Sunshine gauge

Visibility gauge

Page 6: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Essential system functionality

Collect weather information from instruments at regular intervals

Transmit this information, on request, to the weather information system over the satellite link

Store information if communications are not available

Monitor external conditions and shut down power generation/instruments if threat of damage from extreme weather

Run regular diagnostic tests to assess overall health of system

Page 7: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

High Level Software Architecture

Page 8: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Weather Station System Software

Embedded software but not real-time in the sense that rapid reaction to events is required.

Developed using an object-oriented approach Object Oriented approach associates objects with

the physical entities in the system e.g. Weather data collection instruments Power supply and generation Communications

Data may be stored as objects No requirement for large-scale database

Page 9: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Each weather station is battery-powered and must be entirely self-contained – there is no external power or network cables available. All communications are through a relatively slow speed satellite link and the weather station must include some mechanism (solar or wind power) to charge its batteries. As they are deployed in wilderness areas, they are exposed to severe environmental conditions and may be damaged by animals. The station software is therefore not just concerned with data collection. It must also:

1. Monitor the instruments, power and communication hardware and report faults to the management system.

2. Manage the system power, ensuring that batteries are charged whenever the environmental conditions permit but also that generators are shut down in potentially damaging weather conditions, such as high wind.

3. Allow for dynamic reconfiguration where parts of the software are replaced with new versions and where backup instruments are switched into the system in the event of system failure.

Weather Station System Software

Page 10: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on
Page 11: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on
Page 12: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Creating New Project

1. Click menu

2. New project

3. Choose save file location.

Ex: C:\Users\Desktop\SOFTWARE ENGINEERING\EA

Page 13: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

New Project

• Tick :

i. Requirement

ii. Use Case

iii. Domain model

iv. Class

v. Component

• Click OK

1

2

Page 14: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

New Project

• Project browser upper right

Page 15: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Create Requirement Model

Functional Requirement

• Double click

• delete all the automatically generated package by right click and choose delete

Click to view/

expand

Page 16: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Adding Package

1. Double click on functional requirement

2. Click on “Package”

3. Click anywhere on diagram view

4. Fill meaningful name for the package.

5. Click OK button.

5

1 2

3

4

Page 17: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Adding requirement into functional requirement package

Click on REQ01- Collecting Weather Data

1. Click “Requirement”

2. Click anywhere on diagram view

3. Fill meaningful name for the requirement

4. Click OK button

5. REPEAT THE SAME STEP UNTIL ALL THE REQUIREMENT IS COMPLETE

1

2

3

4

Page 18: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Complete Example of functional Requirement Diagram.

Page 19: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Creating Non-Functional Requirement

1. Click on to expand

2. Click on “Non-Functional” to expand

3. Double click on Non-Functional Requirements. There will be some package auto generated.

4. Right Click on each of generated package and choose DELETE

Add Package

a. Click Package

b. Click anywhere in the diagram view

c. Fill in meaningful name for package

d. Click OK button

a

b

c

d

Page 20: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Adding Package on Non-Functional Requirement Diagram

Click

Page 21: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Example Final view of Requirement Model Diagram

Page 22: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Creating The Use Case Model

Page 23: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Relationships:

Association relationship: to show the relationship between a

use case and an actor

There are three types of relationships between use cases:

• includes relationship

• extends relationship

• generalization relationship

There is only one relationship allowed between actors =

generalization relationship

Page 24: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Create Use Case Model

To Add Actor

1. Click on “Actor”

2. Click anywhere in the diagram

3. Put Meaningful name

4. Click OK

4

1

2

3

Page 25: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Create Use Case Model

To Add Use Case

1. Click on “Use Case” 3. Put Meaningful name

2. Click anywhere in the diagram 4. Click OK

4

1

2

3

Page 26: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Create Use Case Model

To Add Use Case

1. Click on “Association” relationship/ Choose suitable relationship in Use Case Relationship Panel

2. Click and Drag the pointer/curser from actor to the suitable use case

1

2

Page 27: Weather Station Case Study - comp.utm.my · Overall system organization Weather Station Weather information system ... As they are deployed in wilderness areas, ... Double click on

Complete of Use Case Diagram

2

1