Professional Documents
Culture Documents
(A Central University)
Department of Computer Science School of Engineering and Technology Master of Computer Applications Computer Lab VII (Web Technology Lab)
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.
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.
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
Register
Authendication
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 DIGRAM
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()
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
Forum
Comment
View View
Comment Comment_view
Social networking
Page 18
: User Compose
Message
Inbox View
Social networking
Page 19
Profile
Edit View
Visit View
Social networking
Page 20
COLLABORATION
DIAGRAM
Social networking
Page 21
Social networking
Page 22
: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
Message
: User
Social networking
Page 24
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