[an error occurred while processing this directive]

R.UM.

Sample 1

This example is based on two simple classes.

file: ClassA.javafile: ClassB.java
public class ClassA {
  ClassB theB;
  public void m1(){
        theB.method();
  }
}
public class ClassB {
  public void method(){
  }
}

Using the Reverse class the UML2 can be extracted. The model with the two classes in XMI format is: testCD.uml2.
The model can be represented as a class diagram, generated using the GvDiagram class, which produces a Graphviz diagram testCD.dot.
With the dot program (dot -Tpng -o testCD.png testCD.dot) it is possible to generate an image file:


Using a suitable tool (e.g. the GenSeqDiag program or a test suite tracing program) we can generate a sequence model and then convert it to a diagram (using the PicDiagrami class) in PIC format (Sequence1.pic).
Using groff or pic2graph the PIC file can be converted into an image file:

[an error occurred while processing this directive]