Beruflich Dokumente
Kultur Dokumente
Class relationships
Associations are labeled with nouns, indicating the nature of the relationship.
They can also be adorned with their cardinality at the target end:
1 exactly one
N unlimited
0..N zero or more
1..N one or more
X..Y range from X to Y
Hasa (composition) relationships are whole/part where the black diamond is on the
whole or composite class.
Class categories
Specification
Statechart Diagrams
Classes have Statecharts if they exhibit interesting and important state-dependent
behavior.
The state of an object is the collection of the attributes of the object with
their current (usually dynamic) values. This state changes over time as the object
sends and receives messages. The state of an object effects the way it reacts to
messages.
When an object changes state it goes through a state transition. This is shown in
STDs with an arrow. Transitions are unique, so that, given an object in a certain
state, if a certain circumstance or event occurs, there is only one transition
that can occur. There may however, be many transitions entering/leaving a single
state.
Events can be viewed in several ways. Some options include looking at events as
objects, messages, or the start/end of an activity. Consistency within a diagram
is important.
STDs must have exactly one start state (with an unlabled transition from a filled
circle to enter it).
STDs may have stop states, with dot within a circle, or they may not.
Advanced features
How are ojbect diagrams different than class diagrams? How many elements will they
have, compared to class diagrams?
Relationships
A link can exist between two objects only if their corresponding classes have a
relationship.
Advanced concepts
Scripts can be written beside the diagram to enhance the description of what is
taking place.
Loops can be represented.
Focus of control can be used to show which objects initiate a string of messages.
These vertical boxes show what object control flow returns to.
Deployment Diagrams
Mapping which shows processes and the processors they are assigned to. Also shows
devices in the system and how devices communicate.