Difference between revisions of "Diagram"

From PKC
Jump to navigation Jump to search
Line 32: Line 32:
==UML==
==UML==
<uml>
<uml>
skinparam usecaseBackgroundColor DarkSeaGreen
Alice -> Bob: Authentication Request
skinparam usecaseArrowColor Olive
Bob --> Alice: Authentication Response
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>
</uml>



Revision as of 09:39, 8 September 2021

Diagrams are pictorial representations of ideas. It associate semantic meanings to graphical artifacts.

Useful reading materials

There are some books on that directly relates to this concept:

On PKC, one may use simple textual data to generate diagrams, using the Diagrams extension.

Sample Diagrams

The Diagrams package supports at least two flavors of diagrams

GraphViz

<graphviz renderer="neato" caption="Graph for example no. 2"> graph example2 {

 run -- intr;
 intr -- runbl;
 runbl -- run;
 run -- kernel;
 kernel -- zombie;
 kernel -- sleep;
 kernel -- runmem;
 sleep -- swap;
 swap -- runswap;
 runswap -- new;
 runswap -- runmem;
 new -- runmem;
 sleep -- runmem;

} </graphviz>

UML

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


References

Related Pages