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
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.
Social networking Page 2
Internal Examiner External Examiner
INDEX
Social NetworkingProblem Definition …………………………………………………………………. 04
Use Case Diagram …………………………………………………………………. 06
Activity Diagram …………………………………………………………………. 10
Class Diagram …………………………………………………………………. 12
Sequence Diagram …………………………………………………………………. 16
Collaboration Diagram …………………………………………………………………. 21
Conclusion …………………………………………………………………. 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 use-
cases 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 user’s 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
Profile
Search
Games
User
Register
Authendication
Message
Forum
Maintainence
Admin
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
Send Message
Register
Authendicate
View Profile
Edit Profile
Delete Account
Receive Message
View Message
Delete message
Create Forum
Comment
Delete
SearchPlay game
Post on wall
Challenge friends
View Post
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
Comment_C
thread_idauthercommentdatetime
comment()delete()
visiter_C
visiter_nameprofile_iddatetime
visit()poke()
Forum_C
titledatetimeauthermessagethread_id
create()delete()
Profile_C
nameagesexclassdeptinterestskillsphonemail_id
view()edit()visit()
Game_C
scorer_idscoredatetimerank
play()publish_score()challenge()
Status_C
user_idstatus
change()view()comment()
message_C
user_iduser_id1msgtypecontentdatetime
write()inbox()outbox()delete()
Auth_C
UsernamePasswordSecret_qusnAnswer
Sign In()Sign out()Register()
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
Forum : User Comment
New Thread
View
View
View
Comment
Comment_view
Delete_Comment
View
Delete
Home Page
Social networking Page 18
SEQUENCE DIAGRAM – MESSAGE
: User Message
Compose
Receive
Reply Message
Inbox
View
Outbox
View
Delete Mail
Back
Social networking Page 19
SEQUENCE DIAGRAM – PROFILE
: User Profile
Create
View
EditView
VisitView
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
Comment
: User
Forum
1: New Thread3: View
9: Delete
2: View4: View
10: Home Page
5: Comment7: Delete_Comment
6: Comment_view8: View
Social networking Page 23
COLLABORATION DIAGRAM – MESSAGE
Message
: User
1: Compose3: Reply Message
4: Inbox6: Outbox
8: Delete Mail
2: Receive5: View7: View9: Back
Social networking Page 24
COLLABORATION DIAGRAM – PROFILE
: User
Profile
1: Create3: Edit5: Visit
2: View4: View6: View
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 user’s
mobile.
Social networking Page 26