Beruflich Dokumente
Kultur Dokumente
KP24303 SYSTEM
ANALYSIS AND DESIGN
OBJECTIVES
How object-oriented analysis can be
used to describe an information
system
Define objects, attributes, methods,
messages, classes, and instances.
Explain relationships among objects
and the concept of inheritance.
Objects
An object represents a person, place,
event,
or
transaction
that
is
significant to the information system.
An object includes data and the
processes that affect that data.
Objects
PARENT object with certain attributes
such as name, age, sex, and hair
color.
The PARENT object can perform
methods, such as reading a bedtime
story, driving the car pool van.
Attributes
An object has certain attributes, which are
characteristics that describe the object.
How many attributes are needed?
Depends on the business requirements of the
information system and is users.
Methods
Define specific tasks that an object can
perform.
Resemble verbs that describe what and
how an object does something.
Methods
Methods,
which
are
tasks
or
functions that the object performs
when it receives a message.
The PARENT object can perform
methods, such as reading a bedtime
story, driving the car pool van.
Instruction: Draw the object PARENT
with attributes and methods as
describe in previous slides.
Messages
A command that tells an object to
perform a certain method.
10
Messages
The message GOOD NIGHT signals
the PARENT object to read a bedtime
story.
11
Classes
A class is a group of similar objects.
All objects within a class share
common attributes and methods.
Objects within a class can be
grouped into subclasses, which are
more specific categories within a
class.
Eg: Class VEHICLE with subclass
TRUCK, CAR, MINIVAN, SCHOOL BUS
12
14
INHERITANCE
15
16
17
19
CLASS DIAGRAMS
Class diagram shows the object
classes and relationships involved in
a use case.
Each class appears as a rectangle,
with the class name at the top,
followed by the classs attributes and
methods.
Lines show relationships between
classes and have labels identifying
the action that relate the two
20
CLASS DIAGRAMS
Cardinality describes how instances of one
class relate to instances of another class.
21
CLASS DIAGRAMS
Figure shows a class diagram for a sales
order use case.
The sales office has one sales manager who
can have anywhere from zero to many sales
reps.
Each sales rep can have anywhere from
zero to many customers, but each customer
has only one sales rep.
Instruction: complete the cardinality
description for the figure shown in Slide 21.
22
SEQUENCE DIAGRAM
A dynamic model of a use case,
showing the interaction among
classes during a specified time
period.
Graphically documents the use case
by showing the classes, the
messages, and the timing of the
messages.
Symbols involved: classes, lifelines,
messages, and focuses.
23
SEQUENCE DIAGRAM
Classes: rectangle with the name inside. Send or receive
messages are shown at the top of the sequence diagram.
Lifelines: dashed lines. Represents the time during which
the object above it is able to interact with the other
objects in the use case. An X marks the end of the lifeline.
Messages: a line showing direction that runs between
two objects. The label shows the name of the messages
and can include additional information about the contents.
Focuses: a narrow vertical shape that covers the lifeline.
It indicates when an object sends or receives a message.
24
SEQUENCE DIAGRAM
25
SEQUENCE DIAGRAM
Classes: STUDENT, MANAGER,
FITNESS-CLASS SCHEDULE,
REGISTRATION RECORD
Instruction: Draw the sequence
diagram for ADD NEW STUDENT use
case.
26
THE END
27