object diagram

11

Upload: rahul-pola

Post on 20-Jul-2015

44 views

Category:

Engineering


2 download

TRANSCRIPT

Page 1: Object diagram
Page 2: Object diagram

ObjectModeling

Object Modeling gives static structure of objects and their relationshipto one another. These are useful for demonstration of system to customers.Object Modeling is represented by using object diagram.

Page 3: Object diagram

ObjectDiagram

It is used to model instances of things contained in class diagram. It is a diagram that shows sets of objects and their relationship. It also represents static structure of system.

Page 4: Object diagram

Purpose Of Object Diagram

It shows object relationships in a system. Understand object behavior and their relationships. Shows static view of a system. Forward and reverse engineering.

Page 5: Object diagram

Terms And Concepts Of Object Diagram

1. Object :It is instance of a class and each object is represented by a

rectangle which contains name of object and its class name underlined and separated by a colon.

Page 6: Object diagram

2. Object With Attributes : As with classes we can list object attributes in separate

compartment. Each object attributes must have values assigned to them.

Page 7: Object diagram

3. Active Objects :Objects that have their own processes that control their

activities are called as active objects. They are represented by a symbol of object with thick border lines.

4. Multiple Objects :It is represented by a symbol as object if attributes of objects

are not important

Page 8: Object diagram

5. Links : These are the relationship between objects. Links are

instances of association. It is represented by solid line.

Relationship between objects can also be generalization or aggregation.

Generalization Symbol Aggregation Symbol

Objects that fulfill more than 1 role can be self linked.

Page 9: Object diagram

Object Instances :Object Instance is also called as class object that it is

nothing but instance of a class. Objects are rendered as instance usually on object diagrams.

Example :Following diagram shows instance of a class order and of

class customer.

The Order class has number of instances o1,o2,o3. It can also be represented by multiple objects if attributes are not important.

Page 10: Object diagram

Example Of Object Diagram For Hospital Management System

Page 11: Object diagram