UML Drawing State Diagrams

When you draw state diagrams, how do you know which states fall into the boxes and which states for the transition arrows? I noticed that transitions are also states.

I look at figure 1 on this page :

enter image description here

+7
diagram uml
source share
4 answers

Transitions are NOT states. Transitions are events that move an object from one state to another. States are determined by the value of the variables in the object and the behavior of the object. Take, for example, the Student object, which has the value "new wait for approval." The student is not allowed to register or attend classes. But the same student may be allowed to register and attend classes if the value changes to "approved." What's the difference? The student object actually has two states.

What makes a Student object move from one state to another? Arrangement of Arrival Approval may take place. So, the approval of Arrival follows the arrow between the two states.

+5
source share

The β€œtransition arrows" in the diagram are not states; they are "TRANSIT / ACTION / VIEW." E.g. in the above figure, "Scheduled" is a state, an open action, after which it goes into the "Open for registration" state. This β€œopen” transition can be replaced by a more detailed one with β€œopen”. Unfortunately, such transition actions as planned / open are very easily confused for the state, but this is not the intention.

+2
source share

First you need to identify the objects in your system. Among these objects, you need to select objects that have a chance of changing over time. Then you need to display state diagrams for all selected objects separately. The letters represent the states of this object, and the arrow represents the activity that causes a change in the state of a particular object.

0
source share

I agree with one point in the specification, in some example, the transitions look like a state. state chart

For me, "selectAmount" is not exactly a state name ...

0
source share

All Articles