Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between StateChart and Activity Diagram

I am really unable to understand the real difference between these 2 diagrams. I mean both of these deal is "states" but I am not sure what deals with what?

like image 667
itsaboutcode Avatar asked Apr 05 '11 22:04

itsaboutcode


People also ask

What is the main difference between an activity and sequence diagram?

Differences Between Sequence Diagram and Activity DiagramThe Sequence diagram shows the message flow from one object to another object. The Activity diagram shows the message flow from one activity to another.

Are state diagram and activity diagram same?

UML State machine diagram and activity diagram are both behavioral diagrams but have different emphases. Activity diagram is flow of functions without trigger (event) mechanism, state machine is consist of triggered states.

What is meant by statechart diagram?

A state diagram, also known as a state machine diagram or statechart diagram, is an illustration of the states an object can attain as well as the transitions between those states in the Unified Modeling Language (UML).

What is activity diagram and swim lane?

An Activity in the activity diagram is also known as Activity state. It is used to represent the invocation of operation, a step in an entire business process. Swimlane is a way in which the performed activities can be grouped by the same actor on an Activity diagram.


1 Answers

It might seems so, but the difference is, activity diagrams describe activities and state charts describe states. So those models are orthogonal - you might imagine there is an activity between two states (something that occurs during the transition) and you might say there is a state between two activities. This is rather a simplification, but I think it might suffice to explain the difference, which is primarily focus, both diagrams are for describing behaviours.

like image 115
Gabriel Ščerbák Avatar answered Sep 19 '22 10:09

Gabriel Ščerbák