8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PlantUMLを使ってシーケンス図を描く

Last updated at Posted at 2013-03-07

PlantUML

jarファイルをダウンロードして適当な場所に置く。

下ようなファイルを作成し、

goatprotocol.plantuml
@startuml
actor black
actor white

black -> white : message
note right: eat
white -> black : what was the message?
note left: eat
black -> white : what was the message?
note right: eat
@enduml

$ java -jar plantuml.jar -tpng goatprotocol.plantuml

sequence diagram

!!!

出力形式は色々選べて、Ascii出力もあるらしい。

$ java -jar plantuml.jar -ttxt goatprotocol.plantuml



        message
 --------------------->




                                  ,---!.
                                  |eat|_\
                                  `-----'






                                           what was the message?
                                           <---------------------







                                            ,---!.
                                            |eat|_\
                                            `-----'









                                                    what was the message?
                                                    --------------------->










                                                                                     ,---!.
                                                                                     |eat|_\
                                                                                     `-----'



                                                                                            |
                                                                                            |
                                                                                            |
                                                                                            |
                                                                                            |
                                                                                            |
                                                                                            |                       ,-.
                                                                                            |                       `-'
                                                                                                                    /|\
                                                                                                                     |
                                                                                                                    / \
                                                                                                                   black
                                                                                                                    |
                                                                                                                    |






                                                                                                                         black                         ,-.
                                                                                                                          ,-.                          `-'
                                                                                                                          `-'                          /|\
                                                                                                                          /|\                           |
                                                                                                                           |                           / \
                                                                                                                          / \                         white








                                                                                                                                                                                   white
                                                                                                                                                                                    ,-.
                                                                                                                                                                                    `-'
                                                                                                                                                                                    /|\
                                                                                                                                                                                     |
                                                                                                                                                                                    / \
                                                                                                                                                                                                                                           message
                                                                                                                                                                                                                                    --------------------->




                                                                                                                                                                                                                                                                     ,---!.
                                                                                                                                                                                                                                                                     |eat|_\
                                                                                                                                                                                                                                                                     `-----'






                                                                                                                                                                                                                                                                             what was the message?
                                                                                                                                                                                                                                                                             <---------------------







                                                                                                                                                                                                                                                                              ,---!.
                                                                                                                                                                                                                                                                              |eat|_\
                                                                                                                                                                                                                                                                              `-----'









                                                                                                                                                                                                                                                                                       what was the message?
                                                                                                                                                                                                                                                                                       --------------------->










                                                                                                                                                                                                                                                                                                                        ,---!.
                                                                                                                                                                                                                                                                                                                        |eat|_\
                                                                                                                                                                                                                                                                                                                        `-----'

激しく残念。

8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?