Wednesday, August 26, 2009

UML: Sequence, Activity or State?

Do you find yourself torn between modeling types for your component? These rule-of-thumb's from Martin Fowler's book "UML Distilled" may come in handy!!

"You should use sequence diagrams when you want to look at the behavior of several objects within a single use case. Sequence diagrams are good at showing collaborations among the objects; they are not so good at precise definition of the behavior."

"If you want to look at the behavior of a single object across many use cases, use a state diagram."

"If you want to look at behavior across many use cases or many threads, consider an activity diagram"

No comments:

Post a Comment