From charlesreid1

Revision as of 04:28, 17 April 2012 by Admin (talk | contribs) (Created page with "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: {| |- |<pre> <graphviz> digr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>