Vous êtes sur la page 1sur 25

Object Oriented Analysis and Design Using UML

Course description:
OBJECTIVE: The understand the Unified Modeling Language and orient towards Object Oriented methodology using UML for modeling software systems. TARGET AUDIENCE: In particular, it is intended for software professionals who have sound knowledge of object concepts and some experience towards analysis and design. PREREQUISITES: Good understanding of object concepts. Sound knowledge of any object oriented language. Knowledge of software engineering process.
2

Class Modeling : Introduction


A class model captures static structure of a system by - characterizing the objects in the system, - relationships between the objects - attributes - operations Purpose: To describe objects

1. Objects
An Object is a concept, abstraction, or thing with identity that has meaning for an application Some objects has : Real-word Counterpart (Ex., Employee & Company) Some objects are : Conceptual entities (Ex., Solving Equation) All objects have identity and are distinguishable Identity means objects are distinguished by their inherent existence and not by descriptive properties that they may have.

2. Classes
An Object is an instance of a class. A Class describes a group of objects with the same - properties (Attribute) - behavior (Operations) - Kinds of Relationship - Semantics Ex., Person Company Process Each Object knows its class (implicit property)
5

2. Classes
Abstract a problem, by grouping objects into classes Abstraction gives modeling its power and ability to generalize from a few specific cases to a host of similar cases. Per class: classname and attribute name

What is Class diagram?


A class diagram shows the existence of classes and their relationships Class diagram provide a graphic notation for modeling classes and their relationships, thereby describing possible objects

Object diagram
Object Diagram: - shows individual objects & their relationship - helpful for documenting test cases Class diagram corresponds to an infinite set of object diagrams

Values & Attributes


Value - a piece of data

Values & Attributes

10

Operations and Methods


Operation: is a function or procedure that may be applied to or by objects in a class. Company : hire Pay payDividend Window Each operation has a target object. The same operation may apply to many different classes, concept ???

11

Operations and Methods


Method: is the implementation of an operation for a class Class named, File : Print (Operation) : ASCII File Binary File Digitized picture

12

Operations and Methods


Operation may have arguments.

direction argumentName : type = defaultValue


Where, direction : in / out / inout

13

Operations and Methods

14

Ordering

Order : Objects on many association end can have order

15

Bag & Sequence

Bag : Collection of elements with duplicate allows Sequence : An ordered collection of elements with duplicate allows

16

Association Class

17

Association Class

18

Association Class

19

Association Class

20

Association Class

21

Qualified Association
QA is an association in which an attribute called qualifier disambiguates the objects for a many association ends.

22

Generalization & Inheritance

23

Generalization & Inheritance

24

Generalization & Inheritance

25