UML Diagrams
From charlesreid1
You can use Graphviz's Dot package to create UML diagrams.
Simple Example: Class UML Diagram
You can make a simple class UML diagram like this:
<graphviz>
digraph G {
rankdir="LR"
node [shape=record];
Arches [shape=record,label="<f0> Arches | <f1> problemSetup() : void \\
\lscheduleInitialize() : void \\
\linitialize() : void \\
\lscheduleComputeStableTimestep() : void \\
\lcomputeStableTimestep() : void \\
\lscheduleTimeAdvance() : void \\
\ltimeAdvance() : void \\
| \\
<f2> sharedState_ : SimulationState \\
\lmyMaterial_ : Material \\
"];
}
</graphviz>
|
<graphviz>
digraph G { rankdir="LR" node [shape=record]; Arches [shape=record,label="<f0> Arches | <f1> problemSetup() : void \\ \lscheduleInitialize() : void \\ \linitialize() : void \\ \lscheduleComputeStableTimestep() : void \\ \lcomputeStableTimestep() : void \\ \lscheduleTimeAdvance() : void \\ \ltimeAdvance() : void \\ |
\\
<f2> sharedState_ : SimulationState \\
\lmyMaterial_ : Material \\
"];
} </graphviz> |