Add agent types example to readme and library page [#36]

This commit is contained in:
David Evans 2018-05-12 15:56:38 +01:00
parent a60d8fb0cb
commit ddd51ba166
4 changed files with 35 additions and 0 deletions

View File

@ -160,6 +160,8 @@ A <- ]: Profit!
title "My Multiline title "My Multiline
Title" Title"
begin Foo, Bar
note over Foo: "Also possible\nwith escapes" note over Foo: "Also possible\nwith escapes"
Foo -> Bar: "Lines of text\non this arrow" Foo -> Bar: "Lines of text\non this arrow"
@ -251,6 +253,22 @@ Foo -> Bar
Bar -> Baz Bar -> Baz
``` ```
### Agent Types
<img src="screenshots/AgentTypes.png" alt="Agent Types preview" width="200" align="right" />
```
begin User, Application, PostgreSQL
User -> +Application
Application -> +PostgreSQL
-PostgreSQL --> Application
-Application --> User
User is a person
PostgreSQL is a database
```
### Asynchronous Communication ### Asynchronous Communication
<img src="screenshots/AsynchronousCommunication.png" alt="Asynchronous Communication preview" width="200" align="right" /> <img src="screenshots/AsynchronousCommunication.png" alt="Asynchronous Communication preview" width="200" align="right" />

View File

@ -284,6 +284,8 @@ A <- ]: Profit!
title "My Multiline title "My Multiline
Title" Title"
begin Foo, Bar
note over Foo: "Also possible\nwith escapes" note over Foo: "Also possible\nwith escapes"
Foo -> Bar: "Lines of text\non this arrow" Foo -> Bar: "Lines of text\non this arrow"
@ -380,6 +382,21 @@ Bar -> Baz
</pre> </pre>
</section> </section>
<section>
<h3 id="AgentTypes">Agent Types</h3>
<pre class="example" data-lang="sequence">
begin User, Application, PostgreSQL
User -> +Application
Application -> +PostgreSQL
-PostgreSQL --> Application
-Application --> User
User is a person
PostgreSQL is a database
</pre>
</section>
<section> <section>
<h3 id="AsynchronousCommunication">Asynchronous Communication</h3> <h3 id="AsynchronousCommunication">Asynchronous Communication</h3>
<pre class="example" data-lang="sequence"> <pre class="example" data-lang="sequence">

BIN
screenshots/AgentTypes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 45 KiB