Главная Случайная страница Контакты | Мы поможем в написании вашей работы! | ||
|
There are 3 modes in which people use the UML: sketch, blueprint, and programming language. The most common of the three is UML as sketch. In this usage, developers use the UML to help communicate some aspects of a system. As with blueprints, we can use sketches in a forward-engineering or reverse-engineering direction. Forward engineering draws a UML diagram before we write a code, while reverse-engineering builds a UML diagram from existing code I order to help understand it. Sketches are also useful in documents, in which case the focus is communication rather than completeness. In contrast, UML as blueprint is about completeness. In forward engineering, the idea is that blueprints are developed by a designer whose job is to build a detailed design for a programmer to code up. In reverse engineering, blueprints aim to convey detailed information about the code either in paper documents or as an interactive graphical browser. The blueprints can show every detail about a class in a graphical form that’s easier for developers to understand. Blueprints require much more sophisticated tools than sketches do in order to handle the details required for the task. Specialized CASE-tools(computer-aided software engineering) as an example. Forward-engineering tools support diagram drawing and back it up with a repository to hold the information. Reverse-engineering tools read source-code and interpret from it into the repository and generate diagrams. Tools that can do both forward and reverse engineering like this are referred to as round-trip tools. Some tools use the source code itself as the repository and use diagrams as a graphic viewport on the code. These tools are called as tripless tools. As we do more and more in the UML and the programming gets increasingly mechanical, it becomes obvious that the programming should be automated. Indeed, many CASE tools do some form of code generation, which automates building a significant part of a system. Eventually, however, we reach the point at which all the system can be specified in the UML, and we reach UML as programming language. In this environment, developers draw UML diagrams that are compiled directly to executable code, and the UML becomes the source code. Obviously, this usage of UML demands particularly sophisticated tooling. (Also, the notions of forward and reverse engineering don't make any sense for this mode, as the UML and source code are the same thing.)
Дата публикования: 2015-11-01; Прочитано: 559 | Нарушение авторского права страницы | Мы поможем в написании вашей работы!