Академический Документы
Профессиональный Документы
Культура Документы
environment project
!
Group#09
Azamat Anuarbekov (AA): %marks
Zhassar Daulet (ZD): %marks
Mukhtassyrov Aktlek (MA): %marks
Vassilaki Sergey (VS): % marks
Nurym Abay (NA): % marks
!
To all our nieces and nephews, who we hope will make a more understandable world. )) (AA)
!
Version Date
0.1
!
!
!
!
Author
04/04/15 SM
Change
Initial Document
Table of Contents
1. Introduction................................................................................................................................................3
1.1. Purpose
1.2. Scope
2. References ...................................................................................................................................................5
3. Decomposition Description .......................................................................................................................6
3.1. Module Decomposition .............................................................................................................................................6
3.2. Concurrent Process ....................................................................................................................................................7
3.3. Data Decomposition (AA) .........................................................................................................................................9
3.4. STATES
6. Detailed Design.........................................................................................................................................12
7. Design Rationale ......................................................................................................................................13
7.1. Design Issues ...........................................................................................................................................................13
7.2. WEb Application (AA) ............................................................................................................................................13
8. Traceability(AA) ......................................................................................................................................14
Project
Traceability
Page 2! of 14
!
1. Introduction
1.1. PURPOSE
The purpose of this document is to explain the design and architecture of the Monitoring and
controlling systems of environment application.
1.2. SCOPE
This document covers system decomposition, interfaces, and dependencies, as well as design
rationale.
1.3. DEFINITIONS, ACRONYMS, ABBREVIATIONS
Term
Description
Code libraries
User
Database
GUI
Table
Server
!
Project
Traceability
Page 3! of 14
!
!
1. Reliability: The systems processes should work uniformly, the loss of users information
through network must be preventedUsability: The system should give easiness to use, even
inexperienced users wont feel discomfort
2. Maintainability: Our code must be well organized with consistent syntax and relevant
naming techniques.
3. Extensibility: All parts in the application must assist in extension and adding new properties
4. Response Time: All Web pages must load less than 30 seconds.Short response time, users
page update time must be very short including database processing time
5. User Privacy: Theres no privacy. Everyone can see the data.
6. Maintainability - Applications code should be well organized, so that it will be easy to
change, provide bug fixes
Project
Traceability
Page 4! of 14
!
2. References
[NONE]
Project
Traceability
Page 5! of 14
!
3. Decomposition Description
3.1. MODULE DECOMPOSITION
The project has an inherent client-server architecture, but there will be little or no client code.
Therefore, the architecture of the server is the most important aspect of architecture. We turned
down a repository architectual design (centralized around the database) and decided upon a layered
(though not clear in the diagram) architecture allowing better interchangability of our database.
This design has three layers. The first contains the PHP Code. The second contains only the
Libraries module, which provides services to the PHP Code in the layer above. The third layer
contains the Database, which provide services to the layer above through the database libraries.
(AA)
3.1.1.
PHP Code Description (AA)
It uses libraries to get/send information from/to database.
1.Listening for database changes
2. Send message to update sub-system if database was changed
3. To find out which panel should be changed
Project
Traceability
Page 6! of 14
!
3.1.2.
Libraries Description(AA)
A library is a chunk of code that is specifically written to do a common task. Sensor code
libraries give makers the means to access the functions of a sensor (as well as other
electronic components) fairly confidently, because the code has been tested by the author
and updated by people who use it.The libraries modules contains the classes and
functions needed by the PHP Code.
1. Provide PHP to connect to server
2. Provide PHP to connect to server
3.1.3.
Database Description(AA)
Database (MySQL) is used to store all the data.
1. Storing all the data
2. On request it will return corresponding data
3.2. CONCURRENT PROCESS
3.2.1.
Web page description (AA)
My web is the main page (index.php) of the application. It displays the data , and has an Save/
Share it" form below it. In this form, the user can either share and save data.
1) Share data
Share data allows users to share all their information with other users .
2) My web application shows to user information about environment parameters . And it includes
this characteristics:
1) temperature monitoring;
2) humidity monitoring;
3) water(rain,level of water) monitoring;
4) radiation monitoring;
5) vibration monitoring;
Project
Traceability
Page 7! of 14
!
!
!
!
!
!
!
Project
Traceability
Page 8! of 14
!
3.2.2.
Database description (AA)
The database is a single process run on a remote server.
3.3. DATA DECOMPOSITION (AA)
[NA]
3.4. STATES
3.4.1.
Project
Traceability
Page 9! of 14
!
4. Dependency Description
!
4.1. INTERMODULE DEPENDENCIES
!
4.2. INTERPROCESS DEPENDENCIES
4.3. DATA DEPENDENCIES
Project
Traceability
Page 10
!
of 14
!
5. Interface Description
5.1. MODULE INTERFACE
5.1.1.
PHP Code Interface(AA)
5.1.1.1 The PHP Code interfaces with the Database through the libraries [see 5.1.2.1]
5.1.1.2 The PHP Code interfaces with PHP super global variable sets
$_POST and $_GET
5.1.1.3 Data passed using $_POST
5.1.1.4 Data passed using $_GET
5.1.2.
5.2.2.1 This thread is created after Main process acquires all information from Database
5.2.2.2 Database listener process interacts with panel Updater process
5.2.2.3 This process will be terminated automatically if Main thread of process is
Project
Traceability
Page 11
! of 14
!
6. Detailed Design
!
NOT REQUIRED
Project
Traceability
Page 12
!
of 14
!
7. Design Rationale
!
7.1. DESIGN ISSUES
!
!
7.2. WEB APPLICATION (AA)
7.2.1.
Description
Our Application depends on being able to visually display data to the user.
7.2.2.
[NA]
7.2.4.
Resolution of Issue
[NA]
Project
Traceability
Page 13
!
of 14
!
8. Traceability(AA)
!
No Use Case/ Non-functional Description
Notification
Share data
Save data
Monitor data
Setup device
User
!
!
FEEL FREE TO ADD APPENDICES AS NEEDED. UPDATE TOC BEFORE SUBMITTING
Project
Traceability
Page 14
!
of 14
!