Reading "UML War Needs Analysis" feelings 03
The state machine diagram and activity diagram are similar in appearance, but the state machine diagram is used to model the state of the object and the event that caused the state to change. When we were sophomore learning UML Unified Modeling Language state machine Diagram module, we learned that UML's state machine diagram is mainly used to establish the dynamic behavior model of object class or object, describe the state of an object in the system, the event that causes State or activity transfer, and the action accompanying by State or activity transfer. But in the previous learning process, we did not learn the "pseudo-state", after the inspection: pseudo-state refers to a state machine in the form of a state, at the same time with a special behavior vertex. It is a transient state used to construct the details of the transformation. When the pseudo state is active, the state machine has not completed the steps from run to completion and does not handle the event. Typically, a pseudo state is used to connect a transition segment, and a conversion to a pseudo state means that it is automatically converted to another State without the need for an event to be triggered.
State machine diagrams can also be used to describe use case diagrams, as well as system-wide dynamic behavior. In a system development phase, it can model object life cycle, reactive object and so on. You can clearly see the state of each object at different stages.
The sequence diagram shows the chronological order of the category role activities, but the relationship between the roles is implicit. Displays a series of messages over time with a lifeline, showing the interaction in a two-dimensional chart. Portrait is the timeline, time is top down. Horizontal displays the classification roles that represent the individual objects in the collaboration. The message appears as an arrow from one role lifeline to another, and the arrows are arranged in chronological order from the top down. One purpose of a UML sequence diagram is to display a sequence of behaviors for a use case. When the behavior is implemented, the messages in each sequence diagram are consistent with the action of the object or the event trigger on the migration in the state machine.
In the process of using sequential drawing teller machines, the circulation and branching structure are used to make the process smoother and easier to understand.
Activity diagram, state machine diagram, sequence diagram is the three great tools of the analysis process, when the system is carried out around something, you can use the state machine diagram, if there is no complicated process, you can use the sequence diagram, if there are more complex special processes, the activity diagram is available.
UML War Requirements Analysis--read Note 03