Aggregation versus Composition [closed]

As a rule of thumb: class Person { private Heart heart; private List<Hand> hands; } class City { private List<Tree> trees; private List<Car> cars } In composition (Person, Heart, Hand), “sub objects” (Heart, Hand) will be destroyed as soon as Person is destroyed. In aggregation (City, Tree, Car) “sub objects” (Tree, Car) will NOT be … Read more

How to generate UML diagrams (especially sequence diagrams) from Java code?

ObjectAid UML Explorer Is what I used. It is easily installed from the repository: Name: ObjectAid UML Explorer Location: http://www.objectaid.com/update/current And produces quite nice UML diagrams: Description from the website: The ObjectAid UML Explorer is different from other UML tools. It uses the UML notation to show a graphical representation of existing code that is … Read more

What’s is the difference between include and extend in use case diagram?

Extend is used when a use case adds steps to another first-class use case. For example, imagine “Withdraw Cash” is a use case of an Automated Teller Machine (ATM). “Assess Fee” would extend Withdraw Cash and describe the conditional “extension point” that is instantiated when the ATM user doesn’t bank at the ATM’s owning institution. … Read more