How can I complete this step in the ArgoUML Class diagram Tour?
I am working through one of the ArgoUML Tours and I am stuck on Build a Class Diagram: Step #11.
This step asks you to build anonymous realizations between the Teacher
interface and the Grad
and Prof
classes. I can build individual realizations, as shown in Figure 1, below; however, I haven't figured out how I can get both Grad
and Prof
to show up as they do in Step 11 of the Tour.
Other than the Tour, the ArgoUML documentation is rather sparse; I can't find information on these kind of realizations in The ArgoUML User Manual. Can someone walk me through the steps to make my diagram look like theirs (Figure 2)? I am using the latest stable copy of ArgoUML (Version 0.32.2).
Figure 1: My attempt at drawing realizations of Teacher
Figure 2: The class diagram, as shown in the ArgoUML Tours - Build a Class Diagram: Step #11
EDIT:
Originally, I tho开发者_高级运维ught Grad
and Prof
were multiple realizations of the same interface. Thanks to Tom Morris for clarifying.
I suspect you're just seeing a difference in drawing styles rather than actually a Realization with multiple clients. If you grab the middle of each realization and put two bends in each to make them zigzag shape and then drag the arrowheads so that they overlay each other (easier if the default click to grid is on), you'll be able to make your diagram look like what's in the picture.
If you think of it, this makes sense since the Class-Interface relationships are really two independent 1:1 relations.
精彩评论