From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cecil Westerhof Subject: Placing components in plantuml Date: Thu, 17 Oct 2019 17:33:18 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000082e48505951cf0fd" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58416) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL7mP-0008Fh-Uj for emacs-orgmode@gnu.org; Thu, 17 Oct 2019 11:33:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL7mN-0003uV-Mq for emacs-orgmode@gnu.org; Thu, 17 Oct 2019 11:33:32 -0400 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]:35147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL7mN-0003uE-Hj for emacs-orgmode@gnu.org; Thu, 17 Oct 2019 11:33:31 -0400 Received: by mail-ot1-x32a.google.com with SMTP id z6so2276761otb.2 for ; Thu, 17 Oct 2019 08:33:31 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --00000000000082e48505951cf0fd Content-Type: text/plain; charset="UTF-8" I just started working with plantuml, but I do not know how to get what I want. At the moment I have the following: #+BEGIN_SRC plantuml :file Graphics/rabbitMQ.eps :noexport @startuml [Producer 1] [Producer 2] [Producer ...] [Producer n] cloud { [Internet] as Internet1 } node RabbitMQ { [Exchange] [Queue 1] [Queue 2] [Queue ...] [Queue n] } cloud { [Internet] as Internet2 } [Consumer 1] [Consumer 2] [Consumer ...] [Consumer n] [Producer 1] --> [Internet1] : Publish [Producer 2] --> [Internet1] : Publish [Producer ...] --> [Internet1] : Publish [Producer n] --> [Internet1] : Publish [Internet1] -> [Exchange] : Publish [Exchange] --> [Queue 1] : Route [Exchange] --> [Queue 2] : Route [Exchange] --> [Queue ...] : Route [Exchange] --> [Queue n] : Route [Queue 1] --> [Internet2] : Consume [Queue 2] --> [Internet2] : Consume [Queue ...] --> [Internet2] : Consume [Queue n] --> [Internet2] : Consume [Internet2] -> [Consumer 1] : Consume [Internet2] -> [Consumer 2] : Consume [Internet2] -> [Consumer ...] : Consume [Internet2] -> [Consumer n] : Consume @enduml #+END_SRC It seems that going down works much better as going right. I would like to have [Producer 2], [Producer ...] and [Producer n] below [Producer 1] is this possible? (And the first 2 left and higher as Internet1 and the other 2 left and lower as Internet1.) The same with queue and consumer. But probably when I have a solution for producer, I will also have a solution for queue and consumer. -- Cecil Westerhof --00000000000082e48505951cf0fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I just started working with plantuml, but I do not know how = to get what I want.
At the moment I have the following:
#+BEGIN_S= RC plantuml :file Graphics/rabbitMQ.eps :noexport
@startuml

[Prod= ucer 1]
[Producer 2]
[Producer ...]
[Producer n]

cloud {=C2=A0 [Internet] as Internet1
}

node RabbitMQ {
=C2=A0 [Exch= ange]
=C2=A0 [Queue 1]
=C2=A0 [Queue 2]
=C2=A0 [Queue ...]
=C2= =A0 [Queue n]
}

cloud {
=C2=A0 [Internet] as Internet2
}
[Consumer 1]
[Consumer 2]
[Consumer ...]
[Consumer n]

=
[Producer 1] =C2=A0 =C2=A0--> [Internet1] =C2=A0 =C2=A0 : Publish[Producer 2] =C2=A0 =C2=A0--> [Internet1] =C2=A0 =C2=A0 : Publish
[P= roducer ...] =C2=A0--> [Internet1] =C2=A0 =C2=A0 : Publish
[Producer = n] =C2=A0 =C2=A0--> [Internet1] =C2=A0 =C2=A0 : Publish
[Internet1] = =C2=A0 =C2=A0 =C2=A0-> [Exchange] =C2=A0 =C2=A0 =C2=A0: Publish
[Exch= ange] =C2=A0 =C2=A0 =C2=A0--> [Queue 1] =C2=A0 =C2=A0 =C2=A0 : Route
= [Exchange] =C2=A0 =C2=A0 =C2=A0--> [Queue 2] =C2=A0 =C2=A0 =C2=A0 : Rout= e
[Exchange] =C2=A0 =C2=A0 =C2=A0--> [Queue ...] =C2=A0 =C2=A0 : Rout= e
[Exchange] =C2=A0 =C2=A0 =C2=A0--> [Queue n] =C2=A0 =C2=A0 =C2=A0 := Route
[Queue 1] =C2=A0 =C2=A0 =C2=A0 --> [Internet2] =C2=A0 =C2=A0 := Consume
[Queue 2] =C2=A0 =C2=A0 =C2=A0 --> [Internet2] =C2=A0 =C2=A0= : Consume
[Queue ...] =C2=A0 =C2=A0 --> [Internet2] =C2=A0 =C2=A0 : = Consume
[Queue n] =C2=A0 =C2=A0 =C2=A0 --> [Internet2] =C2=A0 =C2=A0 = : Consume
[Internet2] =C2=A0 =C2=A0 =C2=A0-> [Consumer 1] =C2=A0 =C2= =A0: Consume
[Internet2] =C2=A0 =C2=A0 =C2=A0-> [Consumer 2] =C2=A0 = =C2=A0: Consume
[Internet2] =C2=A0 =C2=A0 =C2=A0-> [Consumer ...] =C2= =A0: Consume
[Internet2] =C2=A0 =C2=A0 =C2=A0-> [Consumer n] =C2=A0 = =C2=A0: Consume

@enduml
#+END_SRC

It seems that going = down works much better as going right.
I would like to have [Producer 2]= , [Producer ...] and [Producer n] below [Producer 1] is this possible? (And= the first 2 left and higher as Internet1 and the other 2 left and lower as= Internet1.)
The same with queue and consumer. But probably when I h= ave a solution for producer, I will also have a solution for queue and cons= umer.

--
Cecil Westerhof
--00000000000082e48505951cf0fd--