Author Topic: UML diagram - Queues  (Read 3069 times)

Mire123

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
UML diagram - Queues
« on: July 20, 2016, 07:28:10 pm »
Do you have any ideas on how should I model queues in UML diagram?

qwerty

  • EA Guru
  • *****
  • Posts: 9426
  • Karma: +150/-138
  • I'm no guru at all
    • View Profile
Re: UML diagram - Queues
« Reply #1 on: July 20, 2016, 08:10:52 pm »
It depends. A queue is somewhere inside a queue-handler. If you want to show its guts you need to represent the queue objects. Those can be round-robin queues, stacks, heaps, linear arrays, heaven knows. But in most cases you just want to show the handler. And this is a simple class offering enqueue/dequeue methods.

q.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1038
  • Karma: +58/-71
    • View Profile
Re: UML diagram - Queues
« Reply #2 on: July 21, 2016, 09:26:49 am »
Do you have any ideas on how should I model queues in UML diagram?

What sort of diagram?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 6148
  • Karma: +83/-85
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: UML diagram - Queues
« Reply #3 on: July 21, 2016, 10:11:15 am »
Do you have any ideas on how should I model queues in UML diagram?
Actually, two differnt, but related, questions; which go to the heart of what we are doing:

1) How should I model queues in UML
2) How should I represent that model in a diagram

That's why qwerrty answered the way he did and why Glassboy answered the way he did.

1) How do we represent queues in the formalism we have chosen (in this case UML) inside the repository.  That's a formalism related question.  What object types and relationships are needed to model the concept for the purposes required.
2) How do we represent that model on a diagram - which is (principally) a tooling issue.  The formalism provides guidance on how they could be displayed, but that's really about as far as it goes.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!