OOSE
OOSE
Submitted To:
Submitted By:
Name
Designation
: Assistant Professor
Institution
: USICT,GGSIPU
Name
: Gaurav Arora
: 4th
Session (2013-2016)
Study Centre:
University School of Information and Communication Technology
Index
S
Topic
Page
Signature
1
no.
no.
state
machine
with
states,
Difference between actors and users:An actor can make a service request of the system, be requested to
provide a service, and interact with the system.
CLASS DIAGRAM
Class diagram is UML structure diagram which shows structure of the
designed system at the level of classes and interfaces, shows their
features, constraints and
relationships
associations, generalizations, dependencies, etc.
The main symbols shown on class diagrams are:
Classes
- represent the types of data themselves
Associations
- represent linkages between instances of classes
Attributes
- are simple data found in classes and their instances
Operations
- represent the functions performed by the classes and
their instances
Generalizations
- group classes into inheritance hierarchies
Associations and Multiplicity
An association is used to show how two classes are related to each
other.
Symbols indicating multiplicity are shown at each end of the
association
Reflexive associations
It is possible for an association to connect a class to itself
Generalization
8
INTERACTION DIAGRAMS
In UML, interaction diagram is of two types:
sequence diagram and
collaboration diagram
SEQUENCE DIAGRAM
A sequence diagram shows the interaction amongst objects with respect
to time. In a sequence diagram, the objects appear on X-axis and the time
lines are shown in Y-axis.
An object is an instance of a class and is depicted by:
Objectname:classname
The dashed line appearing on the vertical axis is known as the lifeline
of the object.
The lifeline of an object depicts the amount of time the object is alive
in the use case. The lifeline of the object begins as soon as the actor
sends some message to the object.
There is a focus of control which is represented by rectangle.
The rectangle starts with the beginning of a set of procedure, or action
and ends when the procedure is completed.
Messages are an important element in a sequence diagram. Messages
represent interaction between objects, in which sending object asks
the receiving object to perform some operation. Messages are
represented by arrows from the sending objects to the receiving object
Types of messages:o Asynchronous messages: When asynchronous type of
message is sent, the sending object does not wait to receive as
response from the receiving object.
o Synchronous messages: When synchronous type of message
is sent, the sending object waits to receive a response from the
receiving object.
COLLABORATION DIAGRAM
Components of collaboration diagram: Similar to the sequence diagrams, objects are depicted by rectangles
(objectname:classname).
The links between objects are depicted by arrows and the direction of
the link is depicted by directional arrow.
The directional arrow shows the numbered message sent from the
sending object to the receiving object
A link in a collaboration diagram can represent multiple messages
whereas a link in the sequence diagram can depict only one single
message.
11
ACTIVITY DIAGRAM
A fork may consist of one incoming transition and more than one
outgoing transitions. Join combines the two or more concurrent flows
when they are completed. Join is used for synchronization of concurrent
activities.
Swimlanes
A swimlane groups all the activities that are carried by the owner of the
swimlane.
Swimlanes are used to determine which business entity is responsible
for carrying out a specific activity.
Each swimlane is represented by a unique name. The transitions may
cross between entities in the swimlanes. Swimlanes are represented by
vertical lines that divide each group from its neighbours
13
STATECHART DIAGRAMS
A state is one of the conditions that an object may satisfy during its
lifetime. In the given state, the object may perform some activity or waits
for some event to happen.
The state of the object may be determined by one of the possible value of
the attributes of the class.
14
15
DEPLOYMENT DIAGRAM
A deployment
diagram in
the Unified
Modeling
Language models
the physical deployment of artifacts on nodes. To describe a web site, for
example, a deployment diagram would show what hardware components
("nodes") exist (e.g., a web server, an application server, and a database
server), what software components ("artifacts") run on each node (e.g., web
application, database), and how the different pieces are connected.
The nodes appear as boxes, and the artifacts allocated to each node
appear as rectangles within the boxes. Nodes may have subnodes, which
appear as nested boxes. A single node in a deployment diagram may
conceptually represent multiple physical nodes, such as a cluster of
database servers.
There are two types of Nodes:
o Device Node
o Execution Environment Node
Device nodes are physical computing resources with processing memory
and services to execute software, such as typical computers or mobile
phones. An execution environment node (EEN) is a software computing
resource that runs within an outer node and which itself provides a service
to host and execute other executable software elements.
16
COMPONENT DIAGRAM
In the Unified Modeling Language, a component diagram depicts
how components are wired together to form larger components and
or software systems. They are used to illustrate the structure of arbitrarily
complex systems.
Components:
This may have a visual stereotype in the top right of the rectangle of a
small rectangle with two even smaller rectangles jutting out on the left.
17
19
23
26
27
28
OVERALL DESCRIPTION
1. LOGIN
2. AVAILABILITY
3. RESCHEDULE
4. PAYMENT DETAILS
29
Check availability
Customer
Booking Server
Enter details
Request booking
Make payment
Bank System
Confirm booking
30
Activity Diagram
Display
availability
Get booking
request
Display
payment details
Get user's
payment details
No
If complete
Print ticket
31
CLASS DIAGRAM
Booking
Booking_no
Date
Total
Status
name
CustomerDetails
Name
Address
Email
Age
book()
Payment
Date
Amount
Pay()
SEQUENCE DIAGRAM
Customer
Server
Bank
Check availability
Yes
If no, reschedule
Enter information
Reconfirm booking
Payment
Confirm payment
Get ticket
32
COLLABORATION DIAGRAM
2: Yes
1: Check availability
4: Enter information
Customer
Server
3: If no, reschedule
5: Reconfirm booking
8: Get ticket
7: Confirm payment
6: Payment
Bank
33
Displaying
availability
Request
booking
Check availability
Displaying
payment details
User's payment
details
Print Ticket
34
COMPONENT DIAGRAM
Bank
Online
Booking Server
Customer
DEPLOYMENT DIAGRAM
Server Update
Railway
Database
User PC
35