COMP 504
Fall 2016
|
Lec04: UML Diagrams
|
 |
Be sure that your COMM assignment document has been
created and its URL submitted NOW! DO NOT WAIT!
The document does NOT need to be completed in order to be
submitted!
Submitting your document URL early will ensure that peer reviewers can be
properly allocated. No further submission action is needed once the
document URL has been submitted; the latest version of the document will always
be the one that is graded -- no worries!
- Boxes
- Classes
- Name, fields and methods
- Concrete (regular type) vs abstract (italic type)
- Chevrons sometimes used to denote interfaces.
- Sometimes the "role" in which the class plays in the design
will be also be noted.
- Accessibility: public (+), private (-), package (nothing)
- Comments/Notes (dog-eared)
- Lines:
- Solid arrowheads -- generalization
- solid line: inheritance
- dotted line:implementation
- Open arrowheads
- solid line: association ("has-a") -- composition (with
solid diamond end) or aggregation (with open diamond end) or unspecified (no diamond
end). Java is always aggregation.
- dotted line: dependency ("instantiates", "uses",
etc)
Use UML Lab to help you concentrate on the design of your system,
its structure and behaviors, rather than on the Java syntax.
We will be discussing issues concerning composite shapes in class and
continuing on to the next lecture.
© 2016 by Stephen Wong