05 "Mars--UML War Demand Analysis" read Note five
From here, we have learned two kinds of graphs: Class diagram, activity diagram. Now the state machine diagram I feel and the state diagram is very phase. There will be a state of initiation, a state of ending, a state.
Just because the state machine diagram and the activity diagram are similar, we always write the state machine diagram similar to the activity diagram:
How to overcome them is one thing:
1. What are the things that flow around?
2. What is the state of this thing?
3, when a state can be changed to two or more than two States, can be expressed as a branch. For example: Leave can be divided into through, not through two situations.
There are good conditions in the activity diagram, and there are good graphics in the state machine diagram, both of which can be mixed:
The swimlane of the activity diagram, indicating that the activity is emitted by the role represented by the Swimlane, and that the rounded box in the state machine diagram represents the state of a thing, not an activity.
Simply put: The activity diagram represents the role
The state machine diagram represents a state of some kind.
But the same two graphs will make a big difference:
Activity diagram: The use of active or dynamic presentation of the expression, indicating what to do
The left and right sides of the box are all arcs
State machine diagram: general use of adjectives or nouns
Only Four Corners are arcs
Practical recommendations for state machine diagrams:
1, the process around a thing unfold, consider using the state machine diagram analysis
2, see the purpose, role, role process development;
3, for the purpose of the process, list the problems existing in the process;
4, determine the process around what to unfold, thinking about the different stages of the State;
5, try to use the state machine diagram;
6, according to the status quo, how to adjust the state of thinking;
7, using the state machine diagram to draw the optimization process;
In the software design analysis, the sequence diagram (sequence diagram) also played a great role: But in fact, the Chinese expression of the basic grammar and sequence diagram is very similar;
For example: I played my own meal; very logical statements; in fact, like a sequence diagram, it is very logical from beginning to end.
1. Sequence diagram includes:
Performer, Lifeline, message box, process
2. Features:
1, emphasis on interaction;
2, emphasis on the occurrence of time sequence content;
3, not suitable for the complex special process;
In fact, when writing these, we can clearly find that each process has his own unique characteristics, we should not ourselves to create the so-called process. But more understanding of each of the graphics are what to do, their benefits are what, the shortcomings are what;
05 "Mars--UML War Demand Analysis" read Note five