Docsity

What Are Information Systems, Lecture notes of Computer Science

Partial preview of the text

Download What Are Information Systems and more Lecture notes Computer Science in PDF only on Docsity!

Student Registration

System

Software Design Specification

Table of Content

    1. Introduction……………………………………………………………………………………………………………………………
      • 1.1 Purpose………………………………………………………………………………………………………….…….……..
      • 1.2 Scope……………………………………………………………………………………………………………….….…......
      • 1.3 Glossary……………………………………………………………………………………………………………..………..
      • 1.4 References………………………………………………………………………………………………………..…….......
      • 1.5 Overview…………………………………………………………………………………………………………….……….
    1. Architectural Design…………………………………………………………………………………………………….………... - 2.1 High level component and their interaction………………………………………………….………. - 2.1.1 Components……………………………………………………………………………………………….. - 2.1.2 Interfaces…………………………………………………………………………………………………….. - 2.2 Architectural Styles/patterns………………………………………………………………………….….…… - 2.2.1 MVC architecture styles…………………………………………………………………...….…….... - 2.2.2 Three tier client server architecture………………………………………………...………….. - 2.2.3 Different process and their communications…………………………………...……….... - software components on devices………………………………………………………………………….. 2.3 Physical arrangement of devices and Communication & installed - 2.4 Design decisions applied whole application……………………………………………….…...….... - 2.4.1 Object oriented software development methods…………………………..…………... - 2.4.2 Three tier client server architecture……………………………………………..….……......... - 2.4.3 MVC architectural patterns ……………………………………………………………..….……....
      1. Component and Detail design…………………………………………………………………………………..…….….
        • 3.1 Design patterns and other design techniques used…………………………………………..….. - 3.1.1 Abstract factory Pattern……………………………………………………………………….…..… - 3.1.2 Singleton Pattern………………………………………………………………………………….....….. - 3.1.3 Observer Pattern…………………………………………………………………………………....….... - 3.1.4 Adapter Pattern………………………………………………………………………….……………..… - 3.1.5 Techniques used…………………………………………………………………….…………...……....
        • 3.2 Class Diagram…………………………………………………………………………………….……..……..…….
  • 3.3 Sequence Diagram……………………………………………………………………….……….…………..…… - 3.3. 1 Sequence Diagram 01: Login into the system. …………….….…………….…..…… - 3.3. 2 Sequence Diagram 02: Change user password……………..…….……...………….. - 3. 3 .3 Sequence Diagram 03: Add users…………………………………….……...….……..…… - 3.3.4 Sequence Diagram 04: Remove users……………………………....…………………….. - 3.3.5 Sequence Diagram 05: Manage users………………………….......…………………….. - 3.3.6 Sequence Diagram 06: Edit profile information……………..………...…………….. - 3.3. 7 Sequence Diagram 07: Remove subjects from student's selection..……..… - 3.3. 8 Sequence Diagram 08: Create new subjects…………………………………..………. - 3.3. 9 Sequence Diagram 09: Edit existing subjects……………………………….………… - 3.3. 10 Sequence Diagram 10: Delete subjects……………………………………….……….. - 3.3. 11 Sequence Diagram 11: Create new subject lists…………………………….…...... - 3. 3 .12 Sequence Diagram 12: Make adjustment of credits per subject…….……. - 3. 3 .13 Sequence Diagram 13: Subject combination tool……………………….……….. - 3. 3 .14 Sequence Diagram 14: Publish time table………………………………….………... - 3. 3 .15 Sequence Diagram 15 : Update time table………………………………….………… - 3. 3 .16 Sequence Diagram 16: Current subjects by subject vice……………………… - 3. 3 .17 Sequence Diagram 17: Past subject selections by subject vice……………. - student…………………………………………………………… 3. 3 .18 Sequence Diagram 18: View the past, present subject selections of a - 3.3. 19 Sequence Diagram 19: Edit student's profile……………………………………….. - 3. 3 .20 Sequence Diagram 20: Select subjects………………………………………………… - 3. 3 .21 Sequence Diagram 21: Remove subjects from the list………………………… - 3. 3 .22 Sequence Diagram 22: Save………………………………………………………………… - 3. 3 .23 Sequence Diagram 23: View previous semester information………………. - 3. 3 .24 Sequence Diagram 24: View Notices…………………………………………………… - 3. 3 .25 Sequence Diagram 25: Guest view of the student's profile…………………. - 3. 3 .26 Sequence Diagram 2 6: Super user confirmation…………………………………. - 3. 3 .27 Sequence Diagram 27: Access Control Matrix………………………………………
  • 3.4 Algorithm Design……………………………………………………………………………………………………
  • 3.5 Database Design…………………………………………………………………………………………………….
    • 3.5.1 Relational Model……………………………………………………………………….………………...
    • 3.5.2 Normalization/DE normalization…………………………………………………….………….. - 3.5.2.1 Anomalies………………………………………………………………………………….….. - 3.5.2.2 Normalization in our systems………………………………………………….…….
    • 3.5.3 Data Types Identification…………………………………………………………………….……… - 3.5.3.1 Indexes………………………………………………………………………………….……….
    • 3.5.6 Triggers………………………………………………………………………………………………….……
  • 3.6 User interface design……………………………………………………………………………………….……..
    • 3.6.1 Rules and guidelines for user interface designing……………………………………….
      • 3.6.1.1 User input validation methods……………………………………………….……...
      • 3.6.1.2 Guidelines for error messages, warnings and tips……………….…...…...
      • 3.6.1.3 Guideline for interface designing……………………………………………….....
      • 3.6.1.4 Guidelines for error messages warnings and tips………………….…..…..
    • 3.6.2 User interface for each use case………………………………………………………....….…...
      • Interface 1 : Login into the system……………………………………..…..……………..
      • Interface 2 : Change user password…………………………………..…..………………
      • Interface 3 : Add users……………………………………………………..…..…………….….
      • Interface 4 : Remove users…………………………………………………..…..…………….
      • Interface 5 : Manage users………………………………………………..…..……...……....
      • Interface 6 : Edit profile information………………………………..…..………………..
      • Interface 7 : Remove selected subjects from student's selections....…......
      • Interface 8 : Create new subjects………………………………………………….…..……
      • Interface 9 : Edit existing subjects…………………………………………..….………….
      • Interface 10 : Delete subjects…………………………………………………..…..…………..
      • Interface 11 : Create new subject lists……………………………………..…..…………..
      • Interface 12 : Make adjustment of credits per subject…………..…..…………….
      • Interface 13 : Subject combination tool ………………………………..…..…………….
      • Interface 14 : Publish time table…………………………………………………..…..……...
      • Interface 15 : Update time table………………………………………………………..….....
      • Interface 16 : Current subjects by subject vice……………………………..…..……..
      • Interface 17 : Past subject selections by subject vice…………………..…..………
      • Interface 18 : View past & present subject selections of a student…..…..…
      • Interface 19 : Edit student's profile……………………………………………..……..…….
      • Interface 20 : Select subjects……………………………………………….…………..………
      • Interface 21 : Remove subjects from the list……………………………….………..…
      • Interface 22 : Save……………………………………………………………………….………..…
      • Interface 23 : View previous semester information……………………..………..…
      • Interface 24 : View Notices……………………………………….……………………….…….
      • Interface 25 : Guest view of the student's profile……….……………………….…..
      • Interface 26 : Super user confirmation………………………….…………………….…..
      • Interface 27 : Access Control Matrix……………………………….……………………....

1. Introduction

1.1 Purpose

This software design specification is made with the purpose of outlining the software architecture and design of the Student Registration System in detail. The document will provide developers an insight in meeting client’s needs efficiently and effectively. Moreover the document facilitates communication and understanding of the system by providing several views of the system design.

1.2 Scope

The Software design document would demonstrate how the design will accomplish the functional and non- functional requirements captured in the Software Requirement specification (SRS). The docu- ment will provide a framework to the programmers through describing the high level components and architecture, sub systems, interfaces, database design and algorithm design. This is achieved through the use of architectural patterns, design patterns, sequence diagrams, class diagrams, rela- tional models and user interfaces.

1.3 Intended audience

This document is mainly for the developers and the technical and academic staff of Rajarata university of Sri Lanka and student representatives of the University.

1.6 Document Overview

The next chapter of the document has described architectural design of the Student Registration Sys- tem. The high level components and their interactions, suitable architectural patterns, physical ar- rangement of components and design decisions applied to the whole system.

The 3rd^ and final chapter of the System Design Specification is on Component and detailed design. Includes design patterns, sequence diagrams, class diagrams, database design in detail and user in- terface design with screen shots of the interfaces.

2. Architectural Design

2.1 High level components and interfaces

2.1.1 Components

 Student component

This is one of the key components of the Student Registration System. This is where the student subject selection option is implemented. This also includes the result preview, semester preview and profile functions.

 Authentication and user management component

This is the major sub system that is responsible for the security of the Student Registration system. It authenticate users and also handles the user management activities such as creating new user ac- counts, removing accounts from the system etc. Furthermore this component Implements the “control access privilege matrix”.

 Subject component

This is the key component that implements the functions related to the subject operations of admin- istrator such as adding a new subject, editing credits of an existing subject and removing subjects etc. Subject component is also responsible for displaying the available subject list for every semester.

 Publish component

Publish component is the component responsible for publishing notices created by the administrator and also the time tables. This component has the ability to publish multiple notices and time tables at the same time.

 Public component

This is a relatively small subsystem compared to the other components of the Student Registration System. This is the component which is responsible for the guest viewer (public) to view student re- sults.

2.2 Architectural Styles / Patterns

The Student Registration System will be developed under two main architectural styles/ patterns. De- velopment of the project will be done in MVC architectural style and also 3 tier Client/Server Archi- tecture. Client can browse the internet and access the Student Registration System provided within the local area network of the University.

2.2.1 MVC Architecture Style (Model – View – Controller)

MVC Style separates presentation and interaction from the system data. The system is structured into three logical components that interact with each other.

 The Model component -Manages the system data and associated operations on that data.  The View component- Defines and manages how the data is presented to the user.  The Controller component- Manages user interaction and passes these interactions to the View and the Model..

We will use this MVC Style for the Student Registration System because, there are multiple ways to view and interact with data. Also used when the future requirements for interaction and presentation of data are unknown. In some software systems the code between the process logic and interface are mixed. This will reduce the modularity of application and make the system more difficult to maintain. To avoid this problem we have decided to use MVC architectural style to separate the application logic with the interface. The main advantage of this is style allows the data to change independently of its representation and vice versa. Support presentation of the same data in different ways with changes made in one representation shown all of them.

2.2.2 Three-Tier Client Server Architecture

In a client server architecture, the functionality of the system is organized into services, with each service delivered from separate server. Clients are users of these services and access servers to make use of them. We will use this 3- Tier Client Server Architecture because, when data in a shared database has to be accessed from a range of locations. Because servers can be replicated, may also be used when the load on a system is a variable.

 Data Tire

The data tire maintains the applications data such as Users’ data , Departments’ data , subjects’ data , courses’ data , time tables’ data and the SQL queries. It stores these data in a relational database management system (RDBMS). All the connections with the RDBMS are managed in this tier.

 Middle Tire

The middle tier ( web / application server ) implements the business logic , controller logic and presentation logic to control the interaction between the applications’ clients and data. Business rules enforced by the business logic dictate how clients and cannot access application data and how applications process data.

 Client Tire

The client tire is the applications user interface connecting data entry forms and client side applications. It displays data to the user. User interact directly with the application through user inter- face. The client tier interacts with the web/ application server to make requests and to retrieve data from the database. It then displays to the user the data retrieved from the server.

Example of the 3-tier architecture in the Student Registration System

If a student needs to view his current semester subject combination, first he has to login to the system. Then he has to click “User” option, after he has to login “Summary” option. Then system will display the information. In this process, Login screen, users’ main screen and Subject combination summary screen are defined into the Client tier, data for login information and profile information and SQL queries for those information are maintained into the Data tier and controller logic for login process and loading profile information from the database are defined in Middle tier.

2.2.3 Different process and their communication

In the Student Registration System, there are number of different processes, such as database server process, web server process, connections between above servers likewise. When sending mails there should run a mail server. HTTP protocol is using to communicate with web servers, SMTP protocol is using to communicate with mail servers. They should communicate each other well to perform the functions of whole application.

Physical arrangement of devices in a typical network.

In this diagram , it shows that , the only software a client need is to access this system is a browser.

Arrangement of devices and serves

Our University Student Management System needs some specific set of servers and devices. Such as: Server to host web applications and web service applications. Database server to store and manage data. Personal computer, note book, smart phone etc… to access the website. Modem/ router/ switch/ hub/ Wi-Fi network/ cable network etc… and also need an Internet Service Provider to have the internet connectivity.

Communication among components

Above devices are communicating with each other. Personal computer communicates with web server and the database server through HTTP protocol. It communicates with mail server through SMTP protocol. Cable network or Wi-Fi network is also a communication method using in connecting dif- ferent network components.

2.4 Design decisions applied whole application

2 .4.1 Object oriented software development methods

Reasons:  Improved software maintainability.  Faster development  Lower cost development  Improved software development productivity  Higher quality software

  1. 4 .2 Three-Tier Client Server Architecture

Reasons:  As more users access the system a three-tier solution is more scalable than the other solutions because you can add as many middle tiers as needed to ensure good performance.  Security is also the best in the three-tier architecture because the middle layer protects the database tier.

2 .4.3 MVC Architectural Pattern

Reasons:  It should interact with other machines or users effectively.  For more efficient interaction system should have flexible interfaces.  MVC can be taken as for a popular and easy to handle web application development style that has the feature of separating the presentation, Business & intermediate logics.  Ease to coding and provide well defined interfaces within each logic.

3.1.4 Adapter Pattern

The adapter pattern is a structural pattern that translates one interface for a class to a compatible interface. This will convert the interface of a class in to another interface that the user expects. Adapter gives the opportunity for the classes with incompatible interfaces to work together.

Application: This pattern will be used in the Student Registration system when displaying information from the database.

3.1.5 Techniques Used

Prototyping

In designing the Student registration System prototyping will be used to demonstrate underpinning concepts of the designing and for user interfaces. This technique will provide the opportunity for the system users to experiment the software to a certain extent during the development process.

3.2 Class diagram

3.3.2 Sequence diagram 2 : Change user password

3.3.3 Sequence diagram 3 : Add users