Object Oriented Analysis - Design
Object Oriented Analysis - Design
System Design
In this stage, the complete architecture of the desired system is
designed. The system is conceived as a set of interacting subsystems
that in turn is composed of a hierarchy of interacting objects,
grouped into classes. System design is done according to both the
system analysis model and the proposed system architecture. Here,
the emphasis is on the objects comprising the system rather than the
processes in the system.
OBJECT–ORIENTED DESIGN
Object Design
In this phase, a design model is developed based on both the
models developed in the system analysis phase and the
architecture designed in the system design phase. All the classes
required are identified. The designer decides whether −
•new classes are to be created from scratch,
•any existing classes can be used in their original form, or
•new classes should be inherited from the existing classes.
OBJECT–ORIENTED
IMPLEMENTATION AND
TESTING
In this stage, the design model developed in the object
design is translated into code in an appropriate
programming language or software tool. The databases
are created and the specific hardware requirements are
ascertained. Once the code is in shape, it is tested using
specialized techniques to identify and remove the errors
in the code.
OBJECT–ORIENTED
IMPLEMENTATION AND
TESTING
In this stage, the design model developed in the object
design is translated into code in an appropriate
programming language or software tool. The databases
are created and the specific hardware requirements are
ascertained. Once the code is in shape, it is tested using
specialized techniques to identify and remove the errors
in the code.
UML ANALYSIS MODEL
MARK ESPIRITU
UNIFIED MODELING
LANGUAGE
The Unified Modeling Language (UML) is a
graphical language for OOAD that gives a standard
way to write a software system’s blueprint. It helps
to visualize, specify, construct, and document the
artifacts of an object-oriented system. It is used to
depict the structures and the relationships in a
complex system.
SYSTEMS AND MODELS IN
UML
System − A set of elements organized to achieve certain
objectives form a system. Systems are often divided into
subsystems and described by a set of models.
Model − Model is a simplified, complete, and consistent
abstraction of a system, created for better understanding of
the system.
View − A view is a projection of a system’s model from a
specific perspective.
CONCEPTUAL MODEL OF
UML
The Conceptual Model of UML
encompasses three major elements −
•Basic building blocks
•Rules
•Common mechanisms
BASIC BUILDING BLOCKS
The three building blocks of UML are −
•Things
•Relationships
•Diagrams
THINGS
Structural Things − These are the nouns of the UML models representing the
static elements that may be either physical or conceptual. The structural things
are class, interface, collaboration, use case, active class, components, and nodes.
Behavioral Things − These are the verbs of the UML models representing the
dynamic behavior over time and space. The two types of behavioral things are
interaction and state machine.
Grouping Things − They comprise the organizational parts of the UML
models. There is only one kind of grouping thing, i.e., package.
Annotational Things − These are the explanations in the UML models
representing the comments applied to describe elements.
RELATIONSHIPS
Relationships are the connection between things. The four types of
relationships that can be represented in UML are −
Dependency − This is a semantic relationship between two things such that a
change in one thing brings a change in the other. The former is the
independent thing, while the latter is the dependent thing.
Association − This is a structural relationship that represents a group of links
having common structure and common behavior.
Generalization − This represents a generalization/specialization relationship
in which subclasses inherit structure and behavior from super-classes.
Realization − This is a semantic relationship between two or more classifiers
such that one classifier lays down a contract that the other classifiers ensure to
abide by.
DIAGRAMS
A diagram is a graphical representation of a system. It comprises of a group of elements generally in the form of a graph. UML
includes nine diagrams in all, namely −
Class Diagram
Object Diagram
Use Case Diagram
Sequence Diagram
Collaboration Diagram
State Chart Diagram
Activity Diagram
Component Diagram
Deployment Diagram
RULES
UML has a number of rules so that the models are semantically
self-consistent and related to other models in the system
harmoniously. UML has semantic rules for the following −
Names
Scope
Visibility
Integrity
Execution
COMMON MECHANISMS
UML has four common mechanisms −
Specifications
Adornments
Common Divisions
Extensibility Mechanisms
UML BASIC NOTATIONS
MARK ESPIRITU
CLASS
A class is represented by a rectangle having three sections
−