Difference between revisions of "UML"

From AccountIT
Jump to: navigation, search
Line 11: Line 11:
 
<gallery>
 
<gallery>
 
Image:Very simple sequence.png|Example 1
 
Image:Very simple sequence.png|Example 1
 +
Image:Usecase_img07.png|Example 2
 +
Image:Classes10.png|Example 3
 +
</gallery>
 
<uml>
 
<uml>
 
Alice -> Bob: Authentication Request
 
Alice -> Bob: Authentication Request
 
Bob --> Alice: Authentication Response
 
Bob --> Alice: Authentication Response
 
</uml>
 
</uml>
Image:Usecase_img07.png|Example 2
 
Image:Classes10.png|Example 3
 
</gallery>
 
  
 
==== Example1 ====
 
==== Example1 ====

Revision as of 10:41, 30 April 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

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

Example1

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

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>

Example3

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

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