Questions tagged [object-diagram]

Also known as an "Instance Diagram", a UML Object Diagram shows how class instances associate with each other, as opposed to just the relationship between the classes shown in a Class Diagram.

Also known as an "Instance Diagram", a UML "Object Diagram" shows how class instances associate with each other, as opposed to just the relationship between the classes shown in a "Class Diagram".

36 questions
27
votes
2 answers

What is the difference between a Class Diagram vs an Object Diagram?

What is the difference between Class Diagram and Object Diagram?
Ahmed Mahmoud
  • 299
  • 1
  • 4
  • 6
12
votes
3 answers

UML for javascript?

I'm looking for a way of graphically representing javascript objects... I know there is UML, but for example, how to represent the chain between 2 objects, eg: var a, b; a = {}; b = Object.create(a); Intuitively, I'd draw something like…
abernier
  • 27,030
  • 20
  • 83
  • 114
10
votes
2 answers

How to show multiplicities in UML object diagrams

I wonder if there is way to create an array of objects in UML? the following is my try using Modelio as a modeling environment but as you can see there is different objects(i.e. instance[0],instance 1],instance[2],instance[3])
Andrew
  • 713
  • 3
  • 10
  • 19
7
votes
3 answers

How to represent class instances in UML?

I have a class diagram for my application which consists of several compositions and aggregations. Now I want to have diagram based on the class diagram which shows class instances. A snapshot if you will. I need this because it would help…
Daniel Rikowski
  • 71,375
  • 57
  • 251
  • 329
6
votes
3 answers

How works {XOR} constraint in UML?

I have some doubts about how correctly we can use {XOR} constraint in UML. I understand how it works in two different ways. Which one is correct? The xor constraint applies to the association. (either: an object of type A may be associated with 1…
DM14
  • 188
  • 3
  • 13
3
votes
1 answer

UML Object Diagram: Parent or Child

Let's say I have the following class : public class ParentClass{} And one of its children classes is : public class ChildClass extends ParentClass{} Let's consider another class : public class Foo{ private ParentClass field; …
Axel Carré
  • 303
  • 1
  • 5
3
votes
1 answer

Enterprise Architect object diagram refactoring

I've created class diagram. Each class has its attributes and operations. Then I created Object diagram. On this diagram I put instances of my classes. And I define Run State for each attribute. During several iterations we have some of the…
3
votes
2 answers

aggregation association in object diagram

Associations between classes (in class diagrams of course) are an abstraction for a set of links between different objects (in object diagrams). An aggregation is a special kind of association and it has a special symbol, the diamond. A House has…
panny
  • 2,186
  • 4
  • 23
  • 26
2
votes
2 answers

Where's the middle ground between Class and Object in UML?

Let's say you want to diagram a Map class (the mathematical kind, not the cartographic kind). In Ruby, you might have something like: class Map attr_accessor :nodes, :edges def initialize @nodes = Set.new @edges = Set.new end def…
James A. Rosen
  • 64,193
  • 61
  • 179
  • 261
2
votes
5 answers

UML Tool to reverse engineer object diagrams from java source?

I have been playing around with a few various UML tools- Enterprise Architect, Visual Paradigm; in the end I found Intellij IDEA good enough for producing quick UML class diagrams. However, I found creating UML object diagrams quite fiddly in EA…
Andrew B
  • 1,618
  • 2
  • 21
  • 30
2
votes
3 answers

How to Show Reference type and Object type separately for same object in UML object and sequence diagram

The diagram shows sample Class diagram and usage of objects of those classes in Sequence diagram. In the above diagram instance myCar can be referred either by reference of ShowroomItem or reference of interface Vehicle. Accordingly the clients…
2
votes
2 answers

How to use correctly nonunique in UML?

Is it possible to connect a1 with b1 twice on (object diagram), while A has only one B object and it is {nonunique}?
DM14
  • 188
  • 3
  • 13
2
votes
2 answers

Extracting an object diagram to a class diagram

Below, is the mapping of class diagram to object diagram correct? I can not seem to find a useful tutorial on object diagrams anywhere! Here is the image
joker
  • 1,995
  • 3
  • 15
  • 17
2
votes
3 answers

How to create an object diagram in Magic Draw?

I want to create an object diagram of an existing class diagram in Magic Draw version 16.0. How can I do that? The official support of Magic Draw wrote in the forum "what do you mean by an object diagram" so I do not expect any help from that site…
strauberry
  • 4,189
  • 5
  • 34
  • 50
2
votes
6 answers

Diagramming tool to depict objects

I wanted to know what tools (preferably free) can be used to layout a collection of objects and their relationship - simple relationship like members referring each other, inheritance, attributes et.al. I would prefer a tool with which I can create…
Jeenu
  • 2,109
  • 2
  • 20
  • 27
1
2 3