Научная статья на тему 'CREATING COOPERATION AND SEQUENCE DIAGRAMS IN A UNIFIED MODELING LANGUAGE IN A PROGRAM DEVELOPMENT
'

CREATING COOPERATION AND SEQUENCE DIAGRAMS IN A UNIFIED MODELING LANGUAGE IN A PROGRAM DEVELOPMENT Текст научной статьи по специальности «Компьютерные и информационные науки»

CC BY
8
3
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
unified modeling language / cooperation diagram / sequence diagram / acceptance test for household refrigerators / унифицированный язык моделирования / диаграмма кооперации / диаграмма последовательности / приёмо-сдаточных испытания бытовых холодильников

Аннотация научной статьи по компьютерным и информационным наукам, автор научной работы — D.A. Shurinova, A.G. Suvorov, A.V.Murygin

The Unified Modeling Language is a graphical description language in the field of software development, it is widely used in software development to visualize the structure of programs developed for equipment of all industries. In this thesis, the development of cooperation and sequence diagrams for the control system of a test station of household refrigeration devices will be considered.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

СОЗДАНИЕ ДИАГРАММ КООПЕРАЦИИ И ПОСЛЕДОВАТЕЛЬНОСТИ НА УНИФИЦИРОВАННОМ ЯЗЫКЕ МОДЕЛИРОВАНИЯ ПРИ РАЗРАБОТКЕ ПРОГРАММЫ

Унифицированный язык моделирования является языком графического описания в области разработки программного обеспечения, широко применяется при разработке ПО с целью визуализации структуры программ, разрабатываемых для оборудования всех отраслей промышленности. В данном тезисе будет рассмотрена разработка диаграмм кооперации и последовательности для системы управления испытательной станции бытовых холодильных приборов.

Текст научной работы на тему «CREATING COOPERATION AND SEQUENCE DIAGRAMS IN A UNIFIED MODELING LANGUAGE IN A PROGRAM DEVELOPMENT »

Секция «Информационно-управляющие системы»

УДК 62.529

СОЗДАНИЕ ДИАГРАММ КООПЕРАЦИИ И ПОСЛЕДОВАТЕЛЬНОСТИ НА УНИФИЦИРОВАННОМ ЯЗЫКЕ МОДЕЛИРОВАНИЯ ПРИ РАЗРАБОТКЕ

ПРОГРАММЫ

1 2 Д. А. Шуринова , А. Г. Суворов

Научный руководитель - А. В. Мурыгин1

1Сибирский государственный университет науки и технологий имени академика М. Ф. Решетнева Российская Федерация, 660037, г. Красноярск, просп. им. газ. «Красноярский рабочий, 31

2ОАО Красноярский завод холодильников «Бирюса» Российская Федерация, 660123, г. Красноярск, просп. им. газ. «Красноярский рабочий, 29

*E-mail: dasha.shurinova@yandex.ru

Унифицированный язык моделирования является языком графического описания в области разработки программного обеспечения, широко применяется при разработке ПО с целью визуализации структуры программ, разрабатываемых для оборудования всех отраслей промышленности. В данном тезисе будет рассмотрена разработка диаграмм кооперации и последовательности для системы управления испытательной станции бытовых холодильных приборов.

Ключевые слова: унифицированный язык моделирования, диаграмма кооперации, диаграмма последовательности, приёмо-сдаточных испытания бытовых холодильников.

CREATING COOPERATION AND SEQUENCE DIAGRAMS IN A UNIFIED MODELING

LANGUAGE IN A PROGRAM DEVELOPMENT

D. A. Shurinova 1, A. G. Suvorov 2 Scientific supervisor - A. V.Murygin1

1Reshetnev Siberian State University of Science and Technology 31, Krasnoyarskii rabochii prospect, Krasnoyarsk, 660037, Russian Federation

2JSC Krasnoyarsk plant of refrigerators "BIRYUSA" 29, Krasnoyarskii rabochii prospect, Krasnoyarsk, 660123, Russian Federation *E-mail: dasha.shurinova@yandex.ru

The Unified Modeling Language is a graphical description language in the field of software development, it is widely used in software development to visualize the structure of programs developed for equipment of all industries. In this thesis, the development of cooperation and sequence diagrams for the control system of a test station of household refrigeration devices will be considered.

Keywords: unified modeling language, cooperation diagram, sequence diagram, acceptance test for household refrigerators.

A cooperation diagram shows how objects interact with each other, defines objects and the messages/control/information signals that objects send to each other. The main task of this type of diagram is to model the structure of links/messages, thus compiling the overall structure of the system. This type of diagram is very useful for visualization of a system of objects, the structure of their interaction in order to perform a specific task. The interaction structure is determined by the display of signals sent, each of which must be numbered according to the progress of the main program [1].

aktYa.ibhbie npoo.iembi авнацнн h kocmohabthkh - 2022. tom 2

Let's make a diagram of cooperation regarding our new refrigerator testing station [2].

Let's create 2 human objects (operator and engineer), add a note to each with a special note link of the corresponding graphic object, indicated by a dotted line.

Next, add a controller and an operator panel to the diagram. The engineer programs the controller, the operator monitors the appearance of emergency/warning messages on the operator panel, the controller sends information about the testing and detected defective devices to the operator panel, add the appropriate links to the diagram:

- engineer-controller: conventional communication,

- controller-operator panel: direct data flow,

-operator-panel: conventional communication,

Next, add messages to the created links:

- controller engineer: download/debug the program,

- controller-operator panel: transfer data,

-operator-panel: transmit information in a human-readable form,

Next, let's define the characteristics of message synchronization properties:

- engineer-controller: procedure call, means that the engineer, having downloaded the program, is waiting for feedback from the controller with confirmation of its download and the absence of a download failure,

- controller-operator panel: asynchronous, the controller continues to send the results of its work to the operator panel, even if the panel is not working,

-operator-panel: asynchronous, the panel will show messages to the operator even if he is not there.

By the same principle, we add to the diagram such objects as power consumption meters, a database, and the refrigeration devices themselves.

Let's arrange the order of the information, connect it with the notes according to the following algorithm:

1) The engineer downloads the program to the controller.

2) The controller receives information from power consumption meters installed on refrigerators.

3) The controller, focusing on the model of the tested refrigerator, pulls up information about it from the database.

4) The controller makes internal calculations with the received information, makes a decision on the suitability of the refrigerator.

5) Data from the controller is sent to the operator panel to notify the worker of the test results.

6) The worker receives this information.

The sequence diagram serves to visually demonstrate the interaction of objects in the system, describes their relationship in the code. Relationships are also displayed in the order in which they occur. This type of diagram is often used by programmers to schematically represent new code [3].

The diagram consists of objects (represented by rectangles), a person interacting with the system is called an actor. In our case, the actor will be the operator, the objects that make up the system will be the operator panel, controller and database.

From each object in this type of diagrams, a dotted vertical line is drawn, the interaction with which will indicate the interaction with the object. Lines are interconnected by messages (interaction between objects). The response line to the request (namely, the response, and not the independent appeal of the second object) is displayed as a dotted line.

When adding possible options for the system behavior to the diagram, a frame of options is added, which will include possible options for the development of events. In our case, the operator must enter a password, he can enter it either correctly or not, this should be displayed in the options frame.

Next, we consider our case of development of events. If the password is entered correctly, the operator requests information about the test progress through the panel, the controller, receiving

CeiciiHg <<MH(|)0pMauH0HH0-vnpaB.i;iK)LUHe CHcreMhi»»

information from devices and sensors, makes additional requests to the standards database (each refrigerator model has its own power consumption standards). Having received a response from the database, the controller runs the program, the result of which is information about the health and correct operation of the refrigerator, it sends this information to the operator panel, where it can be seen by the worker.

Pic.1. Cooperation Diagram made in LucidChart.

The next step is to add the sequence of the described actions to the diagram. The final step is to add activation lines. They show when and for how long the object is active (performs some process), which makes the activity of each individual object visual. In our case, it can be seen that the most active object is the operator panel, and the most inactive is the database.

Opepator

Human-Machine

imajace

Controller Database

4: Open view window

Alternative^ [Password is correct]

4: Show llie mistake message

[Incorrect password]

1: Enterthe password

5: Open the tab with results

10: Test progress information

2: Cheque the password

3: Password is correct

3: Password is not correct

fi: Request process information

Information about the device

7: Standards request

8:Allowed arrows

Pic.2. Sequence Diagram made in LucidChart.

Актуальные проблемы авиации и космонавтики - 2022. Том 2

References

1. LucidChart. UML Diagram Tutorial. Available at: https://www.lucidchart.com/pages/uml-use-case-diagram, (дата обращения: 10.03.2022).

2. Bityusa. Available at: https://biryusa.ru/about (дата обращения: 10.02.2022).

3. Проектирование баз данных и UML. Роберт Дж. Мюллер. 2018. - 420 c.

© Shurinova D.A., Suvorov A.G., 2022

i Надоели баннеры? Вы всегда можете отключить рекламу.