Docsity

Document sur les propriétés de conception, Schémas de Génie biologique

Toggle sidebar
bg1
1
Software Design Document (SDD) Template (summarized from IEEE
STD 1016)
Software design is a process by which the software requirements are translated into
a representation of software components, interfaces, and data necessary for the
implementation phase.
The SDD shows how the software system will be structured to satisfy the
requirements.
It is the primary reference for code development and, therefore, it must contain all the
information required by a programmer to write code.
The SDD is performed in two stages. The first is a preliminary design in which the
overall system architecture and data architecture is defined. In the second stage, i.e.
the detailed design stage, more detailed data structures are defined and algorithms
are developed for the defined architecture.
This template is an annotated outline for a software design document adapted from
the IEEE Recommended Practice for Software Design Descriptions.
You can refer to IEEE Std 1016 2009 (first version 1998) ) for the full IEEE
Recommended Practice for Software Design Descriptions.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c

Aperçu partiel du texte

Télécharge Document sur les propriétés de conception et plus Schémas au format PDF de Génie biologique sur Docsity uniquement!

Software Design Document (SDD) Template (summarized from IEEE

STD 1016)

Software design is a process by which the software requirements are translated into a representation of software components, interfaces, and data necessary for the implementation phase.

The SDD shows how the software system will be structured to satisfy the requirements.

It is the primary reference for code development and, therefore, it must contain all the information required by a programmer to write code.

The SDD is performed in two stages. The first is a preliminary design in which the overall system architecture and data architecture is defined. In the second stage, i.e. the detailed design stage, more detailed data structures are defined and algorithms are developed for the defined architecture.

This template is an annotated outline for a software design document adapted from the IEEE Recommended Practice for Software Design Descriptions.

You can refer to IEEE Std 1016 2009 (first version 1998) ) for the full IEEE Recommended Practice for Software Design Descriptions.

CIRCLE

(Collaborative Interests & Resources Community for Learning & Exchange)

Software Design Document

Name (s):

 Abeer Abdo

Adam

 Riham Abd-

Elfatah

Awad

Lab Section:

Workstation:

Date: (10/16/2024)

  • CIRCLE
  • Software Design Document
      1. INTRODUCTION
      • 1.1 Purpose
      • 1.2 Scope........................................................................................................................................
      • 1.3 Overview
      • 1.4 Reference Material
      • 1.5 Definitions and Acronyms
      1. SYSTEM OVERVIEW
      • 2.1 System Context and Objectives
      • 2.2 Key Features
      • 2.3 System Architecture
      • 2.4 Stakeholders and Roles
      • 2.5 Constraints and Dependencies
      • 2.6 Assumptions
      • 2.7 System Interfaces
      1. SYSTEM ARCHITECTURE
      • 3.1 Architectural Design
      • 3.2 Decomposition Description
      • 3.3 Design Rationale
      1. DATA DESIGN
      • 4.1 Data Description.....................................................................................................................
      1. COMPONENT DESIGN
      1. HUMAN INTERFACE DESIGN
      • 6.1 Overview of User Interface
      • 6.2 Screen Images
      • Login screen:
      • Sign up screen:
      • Home Screen:
      • Profile Screen:
      • Community Screen:
      • Share Recourse Screen:
      • Communities Screen:
      • Admin Screen:
      • 6.3 Screen Objects and Actions
      1. REQUIREMENTS MATRIX
      1. APPENDICES
  • Appendix A:
  • ARI: Application programming interface..........................................................................................
  • DB: DataBase
  • SDD: Software Design Document
  • SRS: Software Requirement Specification
  • UI: User Interface
  • REST: Representation al State Transfer.........................................................................................
  • Appendix B: Technology Stack
  • Frontend: Flutter (for Android and iOS)
  • Backend: Django (Python)
  • Database: MySQL
  • API Communication: Django REST Framework
  • State Diagram

1. INTRODUCTION

1.1 Purpose

This document aims to provide a detailed architectural design for the CIRCLE platform, a platform designed for creating specialized educational communities. It outlines the overall system architecture, various components, and their interactions. The document is intended to assist developers, project managers, and stakeholders in understanding the technical details of the application and implementing it in an organized and structured manner.

1.2 Scope

The CIRCLE project aims to build a community-based platform that allows users to join specialized communities based on their areas of interest and expertise levels (beginner, intermediate, expert). The platform will offer functionalities such as sharing educational resources, posting job opportunities, creating and participating in discussions. The system will also include community management by admins and support for submitting reports on inappropriate content.

The application’s goal is to enhance the process of knowledge exchange in organized communities, improving the professional and educational learning experience for users while reducing the dispersion of content across general social media platforms.

1.3 Overview

This document is organized into the following sections:

 Chapter 2: Provides an overview of the system  Chapter 3 : Provides an system Architecture  Chapter 4: Including an entity-relationship diagram (ERD).  Chapter 6 : Focuses on the design of the user interface, with detailed descriptions of the design for different screens and interfaces.  Chapter 7: Requirement matrix

1.4 Reference Material

CIRCLE Project SRS Document: Contains the functional and non-functional requirements for the system.

1.5 Definitions and Acronyms

 SDD: Software Design Document.  SRS: Software Requirements Specification.

management, and community operations. A MySQL database stores information such as user profiles, community content, job listings, and reports.

  1. APIs and Integrations: The Django REST Framework manages communication between the app and backend. Future features may include payment gateways and real-time messaging using WebSockets.

2.4 Stakeholders and Roles

  1. Users: Join communities, share resources, participate in discussions, and explore job opportunities.
  2. Admins: Manage communities, moderate discussions, and respond to reports.
  3. Developers: Build, maintain, and improve the platform.
  4. External Services: Used for additional features like notifications and payment systems.

2.5 Constraints and Dependencies

  1. Platform Constraints: CIRCLE will be available on Android (8.0+) and iOS (12.0+), ensuring smooth operation across devices with different specifications.
  2. Development Tools: Frontend: Flutter Backend: Django Database: MySQL
  3. Compliance: The platform will follow GDPR standards to protect user data and secure all communications with HTTPS protocols.
  4. Language Support: The initial release will support both English and Arabic.

2.6 Assumptions

  1. User Participation: Active involvement from users is essential to the platform’s success. This includes sharing resources, posting jobs, and engaging in discussions.
  2. Admin Involvement: Admins will regularly monitor and manage communities to maintain quality and address inappropriate content.
  3. Internet Access: A stable internet connection is necessary for accessing communities, posting jobs, and sharing resources.
  4. Platform Updates: CIRCLE will stay compatible with future Android and iOS updates to ensure smooth performance.

2.7 System Interfaces

  1. User Interface: The app’s main screens include a home screen, community pages, discussion threads, resource upload forms, and job listings.
  2. Database: The MySQL database stores user data, community content, jobs, and shared resources.
  1. APIs: Communication between the mobile app and backend is handled by the Django REST Framework.
  2. Communication Protocols: All data will be transmitted over HTTPS for security. In the future, real-time updates may be supported using WebSockets.

3. SYSTEM ARCHITECTURE

3.1 Architectural Design

The architecture of the CIRCLE platform is modularly designed in a client-server structure, ensuring scalability, maintainability, and clear separation of responsibilities across subsystems. The mobile app serves as the primary user interface, interacting with backend services that handle authentication, community management, content sharing, and reporting. Each subsystem plays a distinct role, working together to create a seamless user experience.

Subsystems and Their Functions:

  1. Mobile Application (UI): Developed with Flutter for Android and iOS. Provides an interface for accessing communities, posting discussions, uploading resources, and managing jobs.
  2. Backend Server: Django REST API: Acts as the communication bridge between the mobile app and backend services. Authentication & Authorization: Manages user logins, registrations, and role-based access. Community Management System: Handles user participation in communities, ensuring access aligns with expertise levels. Resource Sharing Module: Allows users to upload and share content within communities. Discussion Module: Supports the creation of topics and discussions within communities. Job and Training System: Manages job postings and applications. Reporting & Moderation System: Admins address inappropriate content reported by users.
  3. Database (MySQL): Stores user profiles, community data, job listings, shared resources, and reports for moderation.

Relationships Between Subsystems:

User Interface → Django REST API: The UI sends user actions to the backend via API calls.

API → Authentication & Authorization System: The API facilitates authentication by verifying user credentials and managing sessions.

Authentication → MySQL Database: User credentials are securely stored in the database.

Community Management System:

Verifies user roles for community access and interacts with the database to manage community data.

3.2 Decomposition Description

This section presents an object-oriented decomposition of the system, focusing on the interaction between key subsystems through class diagrams, sequence diagrams, and activity diagrams. Each diagram illustrates how components collaborate to achieve the desired functionality.

Subsystems Overview:

Authentication & Authorization: Manages user login, registration, and roles.

Community Management: Handles community membership and levels.

Discussion Module: Manages topics, threads, and replies.

Job and Training System: Supports job postings and discussions.

Resource Sharing Module: Facilitates uploading and accessing resources.

Reporting & Moderation: Handles reports and admin actions.

Class diagram

Sequence Diagrams:

The sequence diagrams outline core user interactions, such as:

  1. User Login: Validates credentials and returns success or error.
  2. Post Job: Submits job details and stores them in the database.
  3. Participate in Discussion: Replies to threads, creates new topics, and shares resources.

User profile

Report management

Job management

Login

Join community

3.3 Design Rationale

The architectural structure was chosen based on several factors:

  • Scalability: The modular architecture allows the system to scale easily with the increase in the number of users and communities.
  • Maintainability: Dividing the system into independent submodules makes maintenance and development easier.
  • Security: The system is designed such that each part is responsible for specific functions, enhancing security and simplifying the application of security measures at the submodule level.
  • Performance: This design optimizes performance by minimizing interaction between modules unless necessary.
  • Flexibility: The design allows the system to expand easily and add new features in the future.

4. DATA DESIGN

4.1 Data Description

In this section, we explain how the information domain of the CIRCLE system is transformed into data entities and stored in the database. The CIRCLE system stores, processes, and organizes data related to users, communities, resources, discussions, job opportunities, and reports. All these entities are stored in a relational database and are interconnected using foreign keys to represent relationships (such as one-to-many or many-to-many relationships).

Entity-Relationship Diagram

4.2 Data Dictionary

 ERD: Entity-Relationship Diagram  Pk: primary key  Fk: Forign key  Id: identity document  M: many

5. COMPONENT DESIGN

This chapter provides a systematic overview of how each core component operates. We describe the member functions and methods for each object within the primary subsystems. The focus here is on presenting the main operations using Procedural Description Language (PDL) or pseudocode.

5.1 Authentication & Authorization System

Main Components:

 User Object: Manages login, registration, and profile management.  Admin Object: Inherits from the User object with additional privileges to manage content and users.

Pseudocode for User Login:

: function loginmemail, passtordf etUsereyEmailmemailf user = De.g

e m ymm ey meoyeo 2.

: Main oomponents

 .Topic gbject: Manages the creation and management of discussion threads

: Pseudocode for Starting a uet Topic

:mtyID, title, content function createTopicmuserID, communi : if not De.userIsMembermuserID, communityIDf o return oUser not a member of this community

topicID = De.saveTopicmuserID, communityID, title, contentf o return foTopic created tith ID stopicIDr

unction verifies if the user is part of the community, and if so, a net ETplanation: This f .discussion topic is created

met ayo nha y yn nummoC 2.

: Main oomponents

 .sob gbject: Manages job postings and applications

: Pseudocode for Posting a sob

:munityID, jobData function postsobmuserID, comm : if not De.userIsMembermuserID, communityIDf o return oAccess denied

jobID = De.savesobmjobDataf o return fosob posted tith ID sjobIDr

the ETplanation: This function checks thether the user has permission to post jobs in .community before saving the job in the database

eotehm yn t meooham ey nummoC 2.

: Main oomponents

 .Report gbject: Manages user reports on inappropriate content  .Admin gbject: Manages reviet and moderation actions

: Pseudocode for Submitting a Report

: function submitReportmuserID, contentID, descriptionf reportID = De.saveReportmuserID, contentID, descriptionf notifyAdminmreportIDf o return foReport submitted tith ID sreportIDr

notifies an admin for ETplanation: This function logs the report in the database and .reviet

6. HUMAN INTERFACE DESIGN

6.1 Overview of User Interface

The interface is designed to be user-friendly, allowing seamless interaction with educational communities, resource sharing, discussions, and job opportunities. When users open the app, they are welcomed by the Home Screen, which presents a personalized feed showing recent posts, discussions, and shared resources from the communities they’ve joined.

A persistent Navigation Bar at the bottom offers quick access to core features: Home: Navigate back to the main feed. Communities: Manage existing communities or discover new ones. Jobs & Opportunities: Browse job listings and opportunities shared within the platform. Profile: View and update personal information.

Users can quickly sign up by providing essential details like their name, email, and password, along with optional information such as job title and profile picture. The User Profile page displays this information, with the option to update it at any time.

In the Communities section, users can: View descriptions of their joined communities. Browse and join new communities aligned with their interests.

Upon selecting a community, users can:

Choose their skill level (Beginner, Intermediate, Expert) via a Floating Action Button (FAB), which tailors the discussions and content they see. Engage in discussions relevant to their skill level. Share and access educational resources.

The Resource Sharing feature allows users to upload files, share links, and post content. In the Discussions section, users can create threads, comment, and engage with other community members.

In the Jobs & Opportunities section, users can: Browse job postings and opportunities shared by members. Create new job listings. Comment on job posts to request more information or engage in discussions.

Admins have access to an Admin Dashboard with tools for moderation, reporting, and community management, ensuring a productive and safe environment. Throughout the app, feedback is provided through confirmation messages, alerts, and visual indicators to enhance the user experience and keep users informed about their actions.