0% found this document useful (0 votes)
92 views20 pages

Object Diagram: Click To Edit Master Subtitle Style

An object diagram visually represents the static structure of a system by showing specific instances of classes at a point in time. It depicts objects as instances of classes from a class diagram and shows the relationships between those objects. An object diagram contains objects with their attributes assigned values, as well as links between objects representing relationships. It can be used to test that a class diagram accurately reflects the design of a system by providing a concrete example.

Uploaded by

ianiaz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views20 pages

Object Diagram: Click To Edit Master Subtitle Style

An object diagram visually represents the static structure of a system by showing specific instances of classes at a point in time. It depicts objects as instances of classes from a class diagram and shows the relationships between those objects. An object diagram contains objects with their attributes assigned values, as well as links between objects representing relationships. It can be used to test that a class diagram accurately reflects the design of a system by providing a concrete example.

Uploaded by

ianiaz
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

OBJECT DIAGRAM

Click to edit Master subtitle style

5/8/12

What is a UML Object Diagram? Object diagrams are also closely linked to class diagrams. Just as an object is an instance of a class, an object diagram could be viewed as an instance of a class diagram. Object diagrams describe the static structure of a system at a particular time and they are used to test the accuracy of class diagrams. 5/8/12

Object diagram

UML 2 Object diagrams (instance diagrams), are useful for exploring real world examples of objects and the relationships between them.It shows instances instead of classes. They are useful for explaining small pieces with complicated relationships, especially recursive relationships.
5/8/12

Object Diagrams
Object Diagrams describe the static structure of a system at a particular time. Whereas a class model describes all possible situations, an object model describes a particular situation. Object diagrams contain the following elements: Objects, which represent particular entities. These are instances of classes.

Links, which represent particular relationships between objects. These are instances of associations.

5/8/12

Basic Object Diagram Symbols and Notations Object names

Each object is represented as a rectangle, which contains the name of the object and its class underlined and separated by a colon.
5/8/12

5/8/12

Object attributes As with classes, you can list object attributes in a separate compartment. However, unlike classes, object attributes must have values assigned to them.

5/8/12

5/8/12

Active object Objects that control action flow are called active objects. Illustrate these objects with a thicker border.

5/8/12

5/8/12

Multiplicity You can illustrate multiple objects as one symbol if the attributes of the individual objects are not important.

5/8/12

5/8/12

Links Links are instances of associations. You can draw a link using the lines used in class diagrams.

5/8/12

5/8/12

ObjectDiagram

Object Diagram shows the relationship between objects. Unlike classes objects have a state.

5/8/12

1515

Object diagrams associations as well

can

contain

Often, the relationship details and multiplicity rules found in the Class diagram are left out to concentrate the diagram on the Objects and their properties Associations between Objects are simply diagrammed using a line 5/8/12 joining the two

OBJECT

Objects are represented by placing the instance name followed by a colon (:) in front of the class name Property values are "name=value" pairs written as

The icon for an object is a rectangle divided into sections, as seen in the figure to the right
5/8/12

Object diagram

5/8/12

Object diagram

5/8/12

Object Diagram - Example


c1: Company c1: Company name=UniMelb d1: Department name=Sales manag er p1: Persont name=Rao
5/8/12

d2: Department name=CSSE employe e p2: Person name=Raj


2020

You might also like