26
Ver. 2.0 T4 Team 1 Software Requirement Analysis for Digital Watch System (DWS) Project Team T4 Team Date 2012-09-20 Team Information 조영준 200714178 오나윤 200814189 유은민 201014186 이성현 201014187 홍중호 201014192

Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 1

Software Requirement Analysis

for Digital Watch System (DWS)

Project Team

T4 Team

Date

2012-09-20

Team Information

조영준 200714178

오나윤 200814189

유은민 201014186

이성현 201014187

홍중호 201014192

Page 2: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 2

Table of Contents

1. Intro _____________________________________________________________________________________________ 4

1.1 Purpose _________________________________________________________________________________________ 4

1.2 Scope ___________________________________________________________________________________________ 4

1.2.1 개발팀_______________________________________________________________________________________4

1.2.2 제한사항____________________________________________________________________________________4

1.2.3 제품의 홗용도________________________________________________________________________________4

1.2.4 개발홖경____________________________________________________________________________________4

1.3 Overview ________________________________________________________________________________________ 5

2 Overall Description ________________________________________________________________________________ 5

2.1 Product Perspective _____________________________________________________________________________ 5

2.2 Product functions _______________________________________________________________________________ 5

2.2.1 Date-Time___________________________________________________________________________________5

2.2.2 Stopwatch__________________________________________________________________________________6

2.2.3 Backlight____________________________________________________________________________________6

2.3 Constraints ______________________________________________________________________________________ 6

2.4 Assumptions and dependencies _______________________________________________________________ 6

3 Structured Analysis ________________________________________________________________________________ 7

3.1 System Context Diagram _______________________________________________________________________ 7

3.1.1 Basic System Context Diagram _______________________________________________________________ 7

3.1.2 Event List _____________________________________________________________________________________ 7

3.1.3 The System Context Diagram ________________________________________________________________ 8

3.2 Data Flow Diagram _____________________________________________________________________________ 9

3.2.1 DFD level 0 ___________________________________________________________________________________ 9

3.2.2 DFD Level 1___________________________________________________________________________________ 9

3.2.2.1 DFD ___________________________________________________________________________________________ 9

3.2.2.2 Data Dictionary ______________________________________________________________________________ 10

Page 3: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 3

3.2.3 DFD Level 2________________________________________________________________________________10

3.2.3.1 DFD _________________________________________________________________________________________10

3.2.3.2 Process Specification ________________________________________________________________________11

3.2.3.3 Data Dictionary _____________________________________________________________________________13

3.2.4 DFD Level 3 _________________________________________________________________________________13

3.2.4.1 DFD __________________________________________________________________________________________13

3.2.4.2 Process Specification ________________________________________________________________________14

3.2.4.3 Data Dictionary _____________________________________________________________________________17

3.2.5 DFD Level 4 _________________________________________________________________________________17

3.2.5.1 DFD __________________________________________________________________________________________17

3.2.52 Process Specification ________________________________________________________________________19

3.2.5.3 Data Dictionary _____________________________________________________________________________22

4 State Transition Diagram ____________________________________________________________________22

4.1 State Transition Diagram for 2.1.2_____________________________________________22

4.2 State Transition Diagram for 2.1.3_____________________________________23

4.3 State Transition Diagram for 2.1.4___________________________________________23

4.4 State Transition Diagram for 2.1.6___________________________________________24

4.5 State Transition Diagram for 2.1.6 Details___________________________________________24

4.6 State Transition Diagram for 2.1.7___________________________________________25

4.7 State Transition Diagram for 2.1.10___________________________________________25

5 Overall DFD _________________________________________________________________________________________ 26

Page 4: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 4

1 Introduction

1.1 Purpose

Digital Watch System에서 사용할 수 있는 SW를 구현하기 위한

요구사항에 대한 분석문서를 작성하였다.

1.2 Scope

1.2.1 개발팀

T4 (조영준, 오나윤, 유은민, 이성현, 홍중호)

1.2.2 제한사항

HW (손목시계)와 연동까지는 고려하지 않고, SW로만 구현할 수 있도록 한다.

1.2.3 제품의 홗용도

하드웨어 개발이 완료된 후 실제 손목시계의 SW를 적용시키기 위한

prototype으로 삼을 수 있다.

1.2.4 개발홖경

IDE: Eclipse C/C++

Compiler: MinGW

1.3 Overview

소프트웨어 상에서 디지털 손목시계의 기능을 구현

구체적으로 Timekeeping Mode, Stop Watch Mode로 크게 두가지로 나뉠 수 있고,

버튺 입력에 따라 그에 따른 기능이 달리 구현된다.

Time Keeping Mode 에서는 시갂 표시와 시각 설정이 가능하고,

Stop Watch Mode 에서는 단순 시갂 기록 및 Lap Time 측정을 하도록 한다

모드와 상관없이 C버튺은 모드전홖을 해야하고, D버튺은 Back Light를 2초갂 표시한다.

모드전홖이 갑자기 바뀌더라도 이전모드에 실행했던 내용을 기억하고 있어야 한다.

2 Overall Description

Page 5: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 5

2.1 Product Perspective

위 제품은 실제 디지털 손목시계에서 사용 될 수 있는 제품이 될 수 있다.

버튺(또는 키보드)에 의한 동작을 처리하고, 처리한 결과는 모니터 화면에 출력한다.

실제 하드웨어에 대한 동작은 Software및 Console 화면으로 처리하여 기능의 동작 유무를 확

인하도록 한다.

2.2 Product functions

2.2.1 Date-Time

화면에 일자와 시갂을 표시한다.

오후 시갂 표시는 pm indicator를 켜는 것으로 표현한다.

2.2.2 Stop Watch

시갂의 경과를 알려주고, 특정 순갂의 시갂을 알려준다.

1/100 초 단위로 측정이 가능하다.

Lap Time 기록이 가능하다.

2.2.3 Backlight

현재 모드와 상관없이 출력하는 문자의 색깔을 2초갂 노란색으로 표시한다.

2.3 Constraints

날짜의 표기법은 „월-일‟로 표시한다.

초기 시갂은 2012년 01월 01일 00시 00분 00초 이다.

2012-1-1부터 2099년까지 표시가 가능하다.

모드와 상관없이 현재시각은 표시된다..

2.4 Assumptions and dependencies

버튺 입력은 키보드 입력으로 대신 한다.

어떤 모드에서 갂 모드 결정은 C버튺으로만 결정된다.

Page 6: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 6

버튺이 여러 개 입력 되었을때의 우선순위는 D>C>B>A 이다.

시갂을 수정할 때 선택된 부분이 깜빡이는 표현은 숫자 밑에 밑줄을 표시하는 것으로 대체한

다.

Backlight는 실제 시계의 경우 LED를 켜는 것으로 구현되어야 하지만 출력되는 문자의 색을

바꾸는 것으로 대체한다

Page 7: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 7

3. Structured Analysis

3.1 System Context Diagram

3.1.1 Basic System Context Diagram

3.1.2 Event List

Input / Output

Event Description Format / Type

A button Input Detects click of the A button of the

Watch True / False, Periodically

B button Input Detects click of the B button of the

Watch True / False, Periodically

C button Input Detects click of the C button of the

Watch True / False, Periodically

Backlight

button Input

Detects click of the D button of the

Watch True / False, Periodically

Display Data that needs to Display None / Time keeping

/ Stopwatch

Back light Backlight commands to the Back light

Display On / Off

Page 8: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 8

3.1.3 The System Context Diagram

Page 9: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 9

3.2 Data Flow Diagram

3.2.1 DFD level 0

3.2.1.1 DFD

3.2.2 DFD Level 1

3.2.2.1 DFD

Page 10: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 10

3.2.2.2 Data Dictionary

Input/Output Event Description Format / Type

A button input Detects click of the A

button of the watch True / False, Periodically

B button input Detects click of the B

button of the watch True / False, Periodically

C button input Detects click of the C

button of the watch True / False, Periodically

Back light button input Detects click of the D

button of the watch True / False, Periodically

Button Storage

Button Storage stores the

results of manipulation of

button clicking.

Display date flow that has display

value

Back Light Back Light commands to

the Back Light Display On / Off

3.2.3 DFD Level 2

3.2.3.1 DFD

Page 11: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 11

3.2.3.2 Process Specification

Reference No. 1.1

Name A button Interface

Input A button input, Tick

Output A button pressed

Process Description “A button Interface” checks whether the A

button input is valid.

Reference No. 1.2

Name B button Interface

Input B button Input, Tick

Output B button pressed

Process Description “B button Interface” checks whether the B

button input is valid.

Reference No. 1.3

Name C button Interface

Input C button input, Tick

Output C button pressed

Process Description “C button interface” checks if the c button

input is valid.

Page 12: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 12

Reference No. 1.4

Name Back light Interface

Input Back light button input, Tick

Output B-L button pressed

Process Description “Back light Interface” checks if the Back

light button input is valid.

Reference No. 1.5

Name Sending Data

Input A button pressed, B button pressed, C

button pressed, Back light button pressed

Output Button Storage

Process Description

“Sending Data” process reads a signal

value of the A button pressed, B button

pressed, C button pressed, Back light

button pressed and store them into Button

storage

Reference No. 2.1

Name Main control

Input Button Storage

Output Display, Back light

Process Description

Main control receives data of Button

Storage and it converts them into

appropriate Back light Command, display

Command respectively.

Page 13: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 13

3.2.3.3 Data Dictionary

3.2.4 DFD Level 3

3.2.4.1 DFD

A button pressed the value of when the A

button is pressed True / False, Periodically

B button pressed the value of when the B

button is pressed True / False, Periodically

C button pressed the value of when the C

button is pressed True / False, Periodically

Backlight button pressed the value of when the

Backlight button is pressed True / False, Periodically

Page 14: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 14

3.2.4.2 Process Specification

4

Reference No. 2.1.1

Name Stage Identifier

Input Button Storage, State Storage

Output State

Process Description Stage identtifier determines which state is

running.

Reference No. 2.1.2

Name Showing time Control

Input Tick

Output Trigger

Process Description

When the Showing time Control is

triggered by Tick, it will trigger Showing

time Mode.

Reference No. 2.1.3

Name Mode Controller

Input State, Tick

Output Enable, Disable,Trigger

Process Description

Mode Controller makes time keeping

control enable or disable when it is

necessary. and also gives trigger back light

mode

Reference No. 2.1.4

Name Back light Mode

Input Trigger, Tick

Output Back light display

Process Description Back light Mode will be on when the Mode

Controller triggers it.

Page 15: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 15

Reference No. 2.1.5

Name Showing time Mode

Input Trigger

Output Current time Storage

Process Description

Showing time Mode will store current time

in the Current time Storage When it is

triggered by Showing time Control.

Reference No. 2.1.6

Name Time keeping Control

Input Enable, Disable

Output Trigger

Process Description

When Time keeping Control is enabled by

mode controller, it will trigger Time

keeping Mode.

Reference No. 2.1.7

Name Stopwatch Control

Input Enable, Disable, Tick

Output Trigger

Process Description

When Stopwatch Control is enabled by

Stopwatch controller, it will trigger

Stopwatch Mode.

Reference No. 2.1.8

Name Time keeping Mode

Input Trigger

Output Current time Storage

Process Description

When Time keeping Mode is triggered by

Time keeping control, it receives data of

Current time storage and it processes them

and store them to the Current time

Storage

Page 16: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 16

Reference No. 2.1.9

Name Stop watch Mode

Input Trigger, Stopwatch storage

Output Stopwatch storage

Process Description

When Stop watch Mode get triggered by

Stopwatch Control, it will receive the data

of Stopwatch storage and process them

and store them in the Stopwatch Storage

Reference No. 2.1.10

Name Display Controller

Input State Storage, Stopwatch Storage, Current

time Storage

Output Display

Process Description When Time keeping Control is enabled by

display control,

Reference No. 2.1.11

Name Main displayer

Input trigger

Output Display

Process Description When main display is triggered by display

controller, it will display the watch screen.

Reference No. 2.1.12

Name Back light display

Input trigger

Output Display

Process Description

When Back light display is triggered by

Back light Mode controller, it will display

back light

Page 17: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 17

3.2.4.3 Data Dictionary

3.2.5 DFD Level 4

3.2.5.1 DFD

Current Time Storage Current Time Storage stores the values of

data.

State Storage

Store the results of State that determines

whether the mode is needed to be on or

off

Stopwatch Storage Store the results of stop watch mode

Time value data flow which has time value

Page 18: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 18

Page 19: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 19

3.2.5.2 Process Specification

Reference No. 2.1.5.1

Name Increase time

Input trigger, Current time Storage

Output increase time

Process Description

When Increase time is triggered by Showing

time Control , it will get current time value

from current time storage and when it receives

trigger again, it will increase the current time

and stores in the Current time storage.

Reference No. 2.1.5.2

Name PM indicator

Input trigger, Current time Storage.

Output PM setting.

Process Description

When PM indicator is triggered by Showing time

Control , it will get pm value from current time

storage and when it receives trigger again, it will set

PM value and stores value in the Current time

storage.

Reference No. 2.1.5.3

Name Initialize

Input trigger, Current time Storage.

Output Initialize time

Process Description

When Initialize is triggered by Showing time

Control , it will get the value from current time

storage and when it receives trigger again, it

will initialize the value and stores value in the

Current time storage.

Reference No. 2.1.8.1

Name Increase time

Input trigger, Current time Storage

Output increase time

Page 20: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 20

Process Description

When Increase time is triggered by Time

keeping Control , it will get current time value

from current time storage and it will increase

the current time and stores value in the

Current time storage.

Reference No. 2.1.8.2

Name PM indicator

Input trigger, Current time Storage.

Output PM setting.

Process Description

When PM indicator is triggered by Time

keeping Control , it will get pm value from

current time storage and it will set PM value

and stores value in the Current time storage.

Reference No. 2.1.8.3

Name Initialize

Input trigger, Current time Storage.

Output Initialize time

Process Description

When Initialize is triggered by Time keeping

Control , it will get the value from current

time storage and it will initialize the value and

stores value in the Current time storage.

Reference No. 2.1.8.4

Name Point changer

Input trigger, Current time Storage.

Output Initialize

Process Description

When Point changer is triggered by Time

keeping Control , it will get the value from

current time storage and it will initialize the

value and stores value in the Current time

storage.

Page 21: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 21

Reference No. 2.1.9.1

Name Time start

Input trigger, Stopwatch Storage.

Output Increasing timer

Process Description

When Time start is triggered by Stop watch

Control , it will get the value from stop watch

storage and it will initialize the value and

stores value in the Stop watch storage.

Reference No. 2.1.9.3

Name Show Laptime

Input trigger, Stopwatch Storage

Output Laptime

Process Description

When Show Laptime is triggered by Stop

watch Control , it will get the value from

stop watch storage and it will show the

laptime and stores the laptime in the Stop

watch storage.

Reference No. 2.1.9.2

Name Time stop

Input trigger, Stopwatch Storage.

Output Stop timer

Process Description

When Time stop is triggered by Stop watch

Control , it will get the value from stop

watch storage and it will initialize the value

and stores value in the Stop watch storage.

Reference No. 2.1.9.4

Name Timer initialize

Input trigger, Stopwatch Storage

Output Initializing timer

Process Description

When Timer initialize is triggered by Stop

watch Control , it will get the value from

stop watch storage and it will initialize the

timer and stores the value in the Stop watch

Page 22: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 22

3.2.5.3 Data Dictionary

4. State Transition Diagram

4.1 State Transition Diagram for 2.1.2

storage.

Increase time data flow with time value which has been

increased.

PM setting data flow that has pm setting value

Initialize time data flow which has initialized time that has

been set

change point data flow which has value of mode about

time keeping or stop watch

Laptime data flow which has laptime value that has

been calculated

Initializing timer data flow that has the value which can

initialize the timer.

Page 23: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 23

4.2 State Transition Diagram for 2.1.3

4.3 State Transition Diagram for 2.1.4

Page 24: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 24

4.4. State Transition Diagram for 2.1.6

4.5 State Transition Diagram for 2.1.6 Details

Page 25: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 25

4.6 State Transition Diagram for 2.1.7

4.7 State Transition Diagram for 2.1.10

Page 26: Software Requirement Analysis for Digital Watch System (DWS) - …dslab.konkuk.ac.kr/Class/2012/12SE/Class_B/TP1/T4_SRA.pdf · 2012-09-21 · Ver. 2.0 T4 Team 1 Software Requirement

Ver. 2.0

T4 Team 26

5. Overall DFD