Difference between revisions of "UML"

From AccountIT
Jump to: navigation, search
(Examples)
(Example3)
 
(21 intermediate revisions by one user not shown)
Line 22: Line 22:
 
</nowiki>
 
</nowiki>
  
 +
 +
<uml>
 +
Alice -> Bob: Authentication Request
 +
Bob --> Alice: Authentication Response
 +
</uml>
 
==== Example2 ====
 
==== Example2 ====
 
  <nowiki><uml>
 
  <nowiki><uml>
Line 39: Line 44:
 
MySql --> (Use)
 
MySql --> (Use)
 
</uml></nowiki>
 
</uml></nowiki>
 +
 +
 +
<uml>
 +
skinparam usecaseBackgroundColor DarkSeaGreen
 +
skinparam usecaseArrowColor Olive
 +
skinparam actorBorderColor black
 +
skinparam usecaseBorderColor DarkSlateGray
 +
skinparam usecaseActorFontName Courier
 +
 +
User << Human >>
 +
:Main Database: as MySql << Application >>
 +
(Start) << One Shot >>
 +
(Use the application) as (Use) << Main >>
 +
 +
User -> (Start)
 +
User --> (Use)
 +
MySql --> (Use)
 +
</uml>
  
 
==== Example3 ====
 
==== Example3 ====
Line 45: Line 68:
 
Object <|-- ArrayList
 
Object <|-- ArrayList
  
package net.sourceforge.plantuml
+
package "net.sourceforge.plantuml"
 
Object <|-- Demo1
 
Object <|-- Demo1
 
Demo1 *- Demo2
 
Demo1 *- Demo2
 
</uml></nowiki>
 
</uml></nowiki>
  
 +
<uml>
 +
package "Classic Collections" #DDDDDD
 +
Object <|-- ArrayList
 +
 +
package "net.sourceforge.plantuml"
 +
Object <|-- Demo1
 +
Demo1 *- Demo2
 +
</uml>
 +
 +
==== Example4 ====
 +
<nowiki>
 +
<graphviz border='frame' format='png'>
 +
digraph example1 {Hello->"World!"}
 +
</graphviz>
 +
</nowiki>
 +
 +
<graphviz border='frame' format='png'>
 +
digraph example1 {Hello->"World!"}
 +
</graphviz>
 +
 +
----
  
[[Category:Usecase]][[Category:Help]]
+
[[Category:Usecase]]
 +
[[Category:Help]]

Latest revision as of 00:25, 12 May 2014

Usage

Just put a PlantUML model description between the <uml></uml>< tag.

Attributes

redraw
force diagram to be redrawn by deleting cached image.

Examples

Example1

<uml>
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
</uml>


Your browser has no SVG support. Please install Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

Example2

<uml>
skinparam usecaseBackgroundColor DarkSeaGreen
skinparam usecaseArrowColor Olive
skinparam actorBorderColor black
skinparam usecaseBorderColor DarkSlateGray
skinparam usecaseActorFontName Courier

User << Human >>
:Main Database: as MySql << Application >>
(Start) << One Shot >>
(Use the application) as (Use) << Main >>

User -> (Start)
User --> (Use)
MySql --> (Use)
</uml>


Your browser has no SVG support. Please install Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

Example3

<uml>
package "Classic Collections" #DDDDDD
Object <|-- ArrayList

package "net.sourceforge.plantuml"
Object <|-- Demo1
Demo1 *- Demo2
</uml>

Your browser has no SVG support. Please install Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

Example4

<graphviz border='frame' format='png'> digraph example1 {Hello->"World!"} </graphviz>

This is a graph with borders and nodes. Maybe there is an Imagemap used so the nodes may be linking to some Pages.