Difference between revisions of "Object Diagram"

From Open Risk Manual
 
Line 34: 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