UML and SDL (specification and Description Language)

Source: Internet
Author: User

UML is very powerful and is often used to express and record software designs. However, there may be no other descriptive tools for convenience in some aspects.

 

For example, when designing a state machine, I sometimes Use SDL (specification and Description Language.

 

The state machine diagram made by UML makes it easy for you to see which states are involved and which States are converted. But in fact, for state machines, there may be many things between state transitions, such as when there is a message interaction between N multi-state machines, it is difficult to express the many things that are done between State Transformations by using UML-based diagrams. With SDL, these tasks can be expressed in an orderly manner. The state machine from which the message comes from and to which the message is sent is clearly displayed.

 

Capture 2 images from the Internet and compare them:

 

UML state machine example (from http://commons.wikimedia.org/wiki/Image:UML_state_diagram.png ):

 

 

 

SDL state machine example (from q.704 ):

 

 

 

In fact, UML and SDL can be used in combination. To quickly let others know the states of the state machine you designed, use UML. If there are a lot of things to do between state conversion, You Can Use SDL to represent it, which greatly facilitates the subsequentCode.

 

-Qianli

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.