Difference between revisions of "Object Diagram"

From Open Risk Manual
(Created page with "== Definition == An '''Object Diagram''' is a graphical UML diagram that is a type of static structure diagram. It describes a system by showing the system's classes, their a...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
== Definition ==
 
== Definition ==
An '''Object Diagram''' is a graphical UML diagram  that is a type of static structure diagram. It describes a system by showing the system's classes, their attributes, operations (or methods), and the relationships among objects. A class is the blueprint for a set of similar objects that appear
+
An '''Object Diagram''' is a graphical UML diagram  that is a type of static structure diagram. It describes a system by showing the system's objects, their attributes, operations (or methods), and the relationships among objects. It is based on the definitions of the related [[Class Diagram]] but an object diagram shows a concrete snapshot of the system state at a specific time.
in the system to be specified. Class attributes allow to store information that has generally different specific values for each instance (object) of the class. Operations specify how specific behavior can be triggered on individual objects.
+
 
 
The concepts behind a class diagram originate from conceptual data modeling and object-oriented software development. The class diagram is based primarily on the concepts of class, generalization, and association. The documented elements and the relationships between them do not change over time.
 
 
 
The class diagram is the main building block of object-oriented modeling. It is used for general conceptual modeling of the structure of the application, and for detailed modeling, translating the models into programming code. Class diagrams can also be used for data modeling. The classes in a class diagram represent both the main elements, interactions in the application, and the classes to be programmed.
 
 
 
An object diagram is distinct but related to the [[Class Diagram]]
 
 
 
 
== PlantUML Elements ==
 
== PlantUML Elements ==
 
A [[PlantUML]] use object diagram specifies and shows the following:
 
A [[PlantUML]] use object diagram specifies and shows the following:
Line 41: Line 34:
 
== References ==
 
== References ==
 
<references/>
 
<references/>
* [[wikipedia:Objectr diagram | Object Diagram @ Wikipedia]]
+
* [[wikipedia:Object diagram | Object Diagram @ Wikipedia]]
 
* [https://plantuml.com/guide PlantUML Language Reference Guide]
 
* [https://plantuml.com/guide PlantUML Language Reference Guide]
  
 
[[Category:PlantUML]]
 
[[Category:PlantUML]]

Latest revision as of 21:23, 16 February 2022

Definition

An Object Diagram is a graphical UML diagram that is a type of static structure diagram. It describes a system by showing the system's objects, their attributes, operations (or methods), and the relationships among objects. It is based on the definitions of the related Class Diagram but an object diagram shows a concrete snapshot of the system state at a specific time.

PlantUML Elements

A PlantUML use object diagram specifies and shows the following:

  • An Object
  • A Map


Example

@startuml
skinparam handwritten true

object London
object Washington
object Berlin
object NewYork

map CapitalCity {
 UK *-> London
 USA *--> Washington
 Germany *---> Berlin
}

NewYork --> CapitalCity::USA
@enduml

Object Diagram

References