Вы находитесь на странице: 1из 26

PONDICHERRY UNIVERSITY

(A Central University)

Department of Computer Science School of Engineering and Technology Master of Computer Applications Computer Lab VII (Web Technology Lab)

Submitted By Senthil Raja. R 1092435

PONDICHERRY UNIVERSITY
Master of Computer Applications Computer Lab VIII (Web Technology Lab)

CERTIFICATE

Certified that the bonafide record of practical work is done by of MCA in IV Semester, during the year 2010-11
Lecturer In-Charge

Submitted for the practical examination held on .. at the Department of Computer Science, Pondicherry University.

Internal Examiner
Social networking

External Examiner
Page 2

INDEX

Social Networking
Problem Definition Use Case Diagram Activity Diagram Class Diagram Sequence Diagram Collaboration Diagram Conclusion . . . . . . . 04 06 10 12 16 21 26

Social networking

Page 3

PROBLEM DEFINITION

Social networking

Page 4

Problem Definition :
The problem is to create the social network that is custamized for the Pondicherry university. The name of the project is PU Note Book . Here, the users i.e students and faculties should register themselves first. The registered user can login to his page and do some social networking activities like creating new forum , creating the group , message to others, chat, etc., The administrator of the website will moniter all the activities and he can block the user who is making some illegal activites like spamming. The admin has to respond for the queries from the users. The main purpose of the website is to make good relationship among the students from various departments and the faculties. This website is having the following modules.

1. Register 2. Authentication 3. Profile 4. Message 5. Forum

6. Group 7. Search 8. Games 9. Maintenance

Social networking

Page 5

USECASE DIAGRAM

Social networking

Page 6

Use-case diagram :
The functionality of a system can be described in a number of different usecases, each of which represents a specific flow of events in a system. It is a graph of actors, a set of usecases enclosed in a boundary, communication, associations between the actors and the use-cases, and generalization among the use-cases.

Use case definition : Description:


A use case is a set of scenarios tied together by a common user goal. A use case is a behavioural diagram that shows a set of use case actions and their relationships.The following use cases are used in social networking.

1.Register 2.Authentication 3.Profile 4.Message 5. Forum 6.Search 7.Games 8.Maintenance

REGISTER USECASE :
It is used to register with the website and allow the user to enter his/her personal details for the profile. AUTHENDICATION USECASE : This use case is used to authenticate the users login information with the server.If the details are valid then the user is redirected to the home page or the use is redirected to the index page. PROFILE USECASE : In this use case, the user can view his profile and edit it. The user can view the profile of other registered users. MESSAGE USECASE :
Social networking Page 7

The user can send the message to the other registered users by typing their profile ID. The user can read or delete the message that he/she got.

FORUM USECASE : The registered user can create new topic in the forum section. This can be viewed / edited by the forum post owner and the other visitors can view it and post comment on it. SEARCH USECASE : One of the main purpose of this website is to find people and make friendship. This use case is used to find the people or page with the given information. GAME USECASE : This is one entertainment module . The user can play game and get the score. He/she can challenge the other players. MAINTAINENCE USECASE : This use case is for the administrator. The web admin will do his maintenance services in this use case.

Purpose:
The purpose of use case is login and communicate others by some social activities.

Main flow:
First, the user gives his id and enters his login. Now, he can do his social activities like blogging, chatting, etc.

Alternate flow:
If the usename of password is wrong then the user is redirected to index page to re enter the information.

Pre-condition:
A person has to register himself to obtain a login ID.

Post-condition:
The user is not allowed to enter the secured area if the password or user name is not valid.

Social networking

Page 8

USE CASE DIAGRAM

Register

Authendication

Profile User Message

Admin

Forum

Search

Games

Maintainence

Social networking

Page 9

ACTIVITY DIAGRAM

Social networking

Page 10

Activity diagram:
It shows organization and their dependence among the set of components. These diagrams are particularly useful in connection with workflow and in describing behavior that has a lot of parallel processing. An activity is a state of doing something: either a real-world process, or the execution of a software routine.

Description:
Activity diagram provides a way to model the workflow of a development process. We can also model this code specific information such as class operation using activity diagram. Activity diagrams can model different types of diagrams. There are various tools involved in the activity diagram.

Activity:
An activity represents the performance of a task on duty. It may also represent the execution of a statement in a procedure.

Decision:
A decision represents a condition on situation during the life of an object, which it satisfies some condition or waits for an event.

Start state:
It represents the condition explicitly the beginning of a workflow on an activity.

Object flow:
An object on an activity diagram represents the relationship between activity and object that creates or uses it.

Synchronization:
It enables us to see a simultaneous workflow in an activity.

End state:
An end state represents a final or terminal state on an activity diagram or state chart diagram.

Social networking

Page 11

ACTIVITY DIAGRAM

Register

Authendicate

Search

View Profile

Send Message

Create Forum

Play game

Edit Profile

Receive Message

View Post

Post on wall

Delete Account

View Message

Comment

Challenge friends

Delete message

Delete

Social networking

Page 12

CLASS DIAGRAM

Social networking

Page 13

Class diagram :
The UML class diagram is also known as object modeling. It is a static analysis diagram. These diagrams show the static structure of the model. A class diagram is a connection of static model elements, such as classes and their relationships, connected as a graph to each other and to their contents.

Class diagram: Description:


 A class diagram describes the type of objects in system and various kinds of relationships that exists among them.  Class diagrams and collaboration diagrams are alternate representations of object models. During analysis, we use class diagram to show roles and responsibilities of entities that provide email client system behaviors design. We use to capture the structure of classes that form the email client system architecture.

The classes used in SOCIAL NETWORKING are:


1. Auth 2. Profile 3. Visitor 4. Forum 5. Comment 6. Status 7. Game 8. Message

A class diagram is represented as:


<<Class name>> <<Attribute 1>> <<Attribute n>> <<Operation ()>>
Social networking Page 14

CLASS DIGRAM

visiter_C visiter_name profile_id date time visit() poke()

Profile_C name age sex class dept interest skills phone mail_id view() edit() visit()

Auth_C Username Password Secret_qusn Answer Sign In() Sign out() Register()

Forum_C title date time auther message thread_id create() delete()

Comment_C thread_id auther comment date time comment() delete()

Status_C user_id status change() view() comment()

Game_C scorer_id score date time rank play() publish_score() challenge()

message_C user_id user_id1 msgtype content date time write() inbox() outbox() delete()

Social networking

Page 15

SEQUENCE DIAGRAM

Social networking

Page 16

Sequence diagram :

Description:
A sequence diagram is a graphical view of scenario that shows object interaction in a time based sequence what happens first what happens next. Sequence diagrams are closely related to collaboration diagram. The main difference between sequence and collaboration diagram is that sequence diagram show time based interaction while collaboration diagram shows objects associated with each other.

Object:
An object has state, behavior and identity. An object is not based is referred to as an instance. The various objects in SOCIAL NETWORKING are:  User  Website  Login  Groups

The sequence diagram for the forum, message and profile are given in the following diagrams.

Social networking

Page 17

SEQUENCE DIAGRAM FORUM

: User New Thread View

Forum

Comment

View View

Comment Comment_view

Delete_Comment View Delete Home Page

Social networking

Page 18

SEQUENCE DIAGRAM MESSAGE

: User Compose

Message

Receive Reply Message

Inbox View

Outbox View Delete Mail Back

Social networking

Page 19

SEQUENCE DIAGRAM PROFILE

: User Create View

Profile

Edit View

Visit View

Social networking

Page 20

COLLABORATION

DIAGRAM

Social networking

Page 21

Collaboration diagram: Description:


Collaboration diagram and sequence diagrams are alternate representations of an interaction. A collaboration diagram is an interaction diagram that shows the order of messages that implement an operation or a transaction. Collaboration diagram is an interaction diagram that shows the order of messages that implement an operation or a transaction. Collaboration diagram shows object s, their links and their messages. They can also contain simple class instances and class utility instances. During, analysis indicates the semantics of the primary and secondary interactions. Design, shows the semantics of mechanisms in the logical design of system. Toggling between the sequence and collaboration diagrams When we work in either a sequence or collaboration diagram, it is possible to view the corresponding diagram by pressing F5 key. The collaboration diagram for the social networking site is give below for the forum, message and profile.

Social networking

Page 22

COLLABORATION DIAGRAM FORUM

:N wT 3: V w 9: D

:U

:V w 4: V w :H P

5: C 7: D _C 6: C _v w 8: V w

Social networking

Page 23

COLLABORATION DIAGRAM MESSAGE

1: Compose 3: Reply Message 4: Inbox 6: Outbox 8: Delete Mail

Message

: User

2: Receive 5: View 7: View 9: Back

Social networking

Page 24

COLLABORATION DIAGRAM PROFILE

1 C eate Edit i it ofile 2 U e ie ie ie

Social networking

Page 25

Conclusion :
Thus the project PU NoteBook has been successfully created and its use case, activity, class, sequence and collaboration diagram are drawn. They have been given in this document. In future, the website will be extended to be accessed by the mobile without internet connection. This is possible by creating the mobile server which will respond to the sms request from the registered users mobile.

Social networking

Page 26