JCEA Part 1: UML

 

Contents

  1. General
  2. References
  3. Syllabus
    1. Concepts
    2. Common architectures
    3. Legacy connectivity
    4. EJB
    5. EJB Container model
    6. Protocols
    7. Applicability of J2EE
    8. Patterns
    9. Messaging
    10. Internationalisation
    11. Security
  4. Reference
    1. UML
  5. Resources
  6. Further Tips
 
 

Syllabus

Although not directly referenced in the Sun syllabus it is an important topic
 

Information

Building Blocks

Elements

Class
Interface
Collaboration
Use Case
Active Class
Component
Node
Arrow
State Machine
Package
Note

Relationships

There are four types of relationship in UML:

  1. Dependency
  2. Association
  3. Generalization
  4. Relization
1. Dependency

2. Association

An association may have a multiplicity at each end, and representents the number of elements that the element at the far end of the association has of the the clsoe element.

Multiplicity
Meaning
1
One and only one
0..* or *
Zero, One or Many
1..*
One or Many
a..b
Between a and b
a,b
a or b

An association may be directed ([straight line with open arrow on right]) or undirected ([staright line]). If it is undirected then it either means:

  • it has not been decided if the association is directed
  • the association is bidirectional

There are two special types of association:

Aggregation
Composition
3. Generalization
Generalization
4. Realization
Realization

Diagrams in UML

  1. Class diagram
  2. Object diagram
  3. Use case diagram
  4. Sequence diagram
  5. Collaboration diagram
  6. Statechart diagram
  7. Activity diagram
  8. Component diagram
  9. Deployment diagram

Common Mechanisms

  1. Specifications
  2. Adornments
  3. Common divisions
  4. Extensibility mechanisms

1. Specifications

The view of a building block may be a part of the whole, e.g. a class may have attributes that are shown in one diagram but not in another.

2. Adornments

Used to represent additional state, e.g. whether a class is abstract, or the visibility of attributes or operations (+public, #protected, -private)

3. Common Divisions

Designates instance of an element. class is an instance of class, :class in an anonymous instance of class and named:class is a named instance of class.

4. Extensibility Mechanisms

Allows UML to be customised and expanded. Tools include:

  • Steretypes
  • Tagged values
  • Constraints
 
 
 
 

Links

  1. Robert C Martin's Tutorials: A very Good resource, covers ...
    1. Walking through a UML Design
    2. Use Cases
    3. Complex Transactions
    4. Finite State machine diagrams
    5. UML Sequence diagrams
    6. UML Collaboration diagrams
    7. UML Class diagrams
  2. UML reference card by Allen Holub 
 

Observations

none

Page created by Leo Crawford
last updated in June 2002