Class Diagram generation from java code using ArgoUML not showing associations

525 Views Asked by At

I am using ArgoUML to generate automatically Class diagrams from Java code.

For that purpose, on ArgoUML, I`m doing: File -> Import Sources -> (I select the java files)

The problem is that if I have an association, the link between classes that I would expect in the Class Diagram doesn`t appear.

A Java code example that should show (in AgroUML) an association between the Flyable interface and the HotPursuit Class, but it does not show after auto class diagram generation:

public class HotPursuit {
  Flyable[] chasers;
  int _size;

  public HotPursuit(int size) {
     chasers =  new Flyable[size];
     this._size = size;
  }

  public void chase() {
    for(int i = 0; i < _size; i++) {
      chasers[i].fly();
    }
  }
}
public interface Flyable {
  public abstract void fly();
}

Any way to solve this issue? Thanks

0

There are 0 best solutions below