Beruflich Dokumente
Kultur Dokumente
them. Following class diagrams demonstrate various levels of detail, visibility, and properties of classes
ClassName
Following class diagrams demonstrate different presentation options for the generalization and specialization of classes (inheritance) abstract Superclass attribute ... method() : ResultType ... Subclass Superclass
Subclass2
Subclass1
Subclass2
Aggregation, navigabitliy and multiplicity WholeClass part1 : Part1Class part2 : Part2Class ... 0..1 0..* Part2Class aggregation bidirectional navigability part1 1..* Part1Class
Design pattern as collaboration of classes abstract QHsm abstract hierarchical state machine base class concrete HSMs myState : QState init() dispatch()
Calc
QHsmTst
quantum L aPs
www.quantum-leaps.com
State Diagram: A state diagram shows the static state space of a given context class, the events that cause a transition from one state to another, and the actions that result.
stateA
stateName entry / action1() exit / x=3; y=1; EVT(a, b)[guard()] / action2() ...
initial transition Composite state, initial transitions, and the final state entry / action1() exit / x = 3; EVT / compositeStateName
self transition
stateC C
stateA entry / A A
stateB
history pseudostate stateA dynamic choicepoint stateAB A X B [x > 0] Y stateBA C [else] stateBB stateAC B A stateB entry / actionB(); H
orthogonal regions
quantum L aPs
www.quantum-leaps.com
Sequence Diagram: A sequence diagram shows a particular sequence of events exchanged among objects at runtime. A sequence diagram has two dimensions: the vertical dimension represents time and the horizontal dimension represents different objects. Time flows down the page. (The dimensions can be reversed, if desired.)
objects
:QF
philo[n]:Philosopher thinking
table:Table
time
quantum L aPs
www.quantum-leaps.com