Научная статья на тему 'СОЗДАНИЕ ДИАГРАММЫ КЛАССОВ НА UML ДЛЯ ВИЗУАЛИЗАЦИИ СТРУКТУРЫ ПРОГРАММЫ ПРОВЕДЕНИЯ ИСПЫТАНИЙ ХОЛОДИЛЬНИКОВ'

СОЗДАНИЕ ДИАГРАММЫ КЛАССОВ НА UML ДЛЯ ВИЗУАЛИЗАЦИИ СТРУКТУРЫ ПРОГРАММЫ ПРОВЕДЕНИЯ ИСПЫТАНИЙ ХОЛОДИЛЬНИКОВ Текст научной статьи по специальности «Математика»

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

Аннотация научной статьи по математике, автор научной работы — Д.А. Шуринова, А.Г. Суворов, А.В. Мурыгин

Классовая диаграмма относится к типу структурных диаграмм, широко применяется для объектно-ориентированного программирования. Подобная диаграмма описывает типы объектов в системе и типы взаимоотношений, которые могут между этими объектами существовать. В данном тезисе будет описано как построить программу данного типа для системы проведения приёмо-сдаточных испытаний бытовых холодильников.

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

CREATING A CLASS DIAGRAM IN UML TO VISUALIZE THE STRUCTURE OF A REFRIGERATOR TESTING PROGRAM

Class diagrams refer to the type of structural diagrams, widely used for object-oriented programming. Such a diagram describes the types of objects in the system and the types of relationships that can exist between these objects. In the thesis, we will describe how to build a program of this type for a system for conducting acceptance tests for household refrigerators.

Текст научной работы на тему «СОЗДАНИЕ ДИАГРАММЫ КЛАССОВ НА UML ДЛЯ ВИЗУАЛИЗАЦИИ СТРУКТУРЫ ПРОГРАММЫ ПРОВЕДЕНИЯ ИСПЫТАНИЙ ХОЛОДИЛЬНИКОВ»

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

УДК 62.529

СОЗДАНИЕ ДИАГРАММЫ КЛАССОВ НА UML ДЛЯ ВИЗУАЛИЗАЦИИ

СТРУКТУРЫ ПРОГРАММЫ ПРОВЕДЕНИЯ ИСПЫТАНИЙ ХОЛОДИЛЬНИКОВ

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

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

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

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

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

Классовая диаграмма относится к типу структурных диаграмм, широко применяется для объектно-ориентированного программирования. Подобная диаграмма описывает типы объектов в системе и типы взаимоотношений, которые могут между этими объектами существовать. В данном тезисе будет описано как построить программу данного типа для системы проведения приёмо-сдаточных испытаний бытовых холодильников.

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

CREATING A CLASS DIAGRAM IN UML TO VISUALIZE THE STRUCTURE OF A REFRIGERATOR TESTING PROGRAM

1* 2 D. A. Shurinova , A. G. Suvorov

Scientific supervisor - A. V. Murygin1

'Reshetnev 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

Class diagrams refer to the type of structural diagrams, widely used for object-oriented programming. Such a diagram describes the types of objects in the system and the types of relationships that can exist between these objects. In the thesis, we will describe how to build a program of this type for a system for conducting acceptance tests for household refrigerators.

Keywords: Unified modeling language, class diagram, acceptance test for household refrigerators.

Every refrigerator's proper work should be proved by a certain tests provided by the factory. Parameters of the refrigerator should be as it is required in the standard. Factory's management can choose the methodology from the existing ones by themselves or create a new one. On the factory Biruysa [1] a new testing method was invented [2] and the structure of this method we will introduce in the form of a class diagram.

UML (Unified modelling language) [3] includes many types of diagrams. Class diagram describes different types of objects in the system and different types of relationships that exist between the these objects.

CcKLbbbbb «<MH([i0|3MamH0HH0-\^npaB.i;[K3Lune CHCTeMhi»»

Description of the diagram.

We create a class «Refrigerator» (the class designation in such quotes means that this is the designation of an abstract class, which may include more specific classes, for example, the class of two-chamber single-compressor refrigerators, or laries) whose attributes will be a model (int dimension) and an individual number for each device. We make both attributes of type Public, which means that their visibility is in the public domain. In the methods, we write down the power consumed by the refrigerator at the moment, since it does nothing more, being located at the test station.

Next, we describe the relationships that can exist between classes:

- inheritance: for example, our abstract class of refrigerators will include two-compressor two-chamber, one-compressor one-chamber refrigerators and laries. Inheritance is indicated by an unfilled arrow.

- association: denoted simply by a line, denotes a connection, than we add an operator who monitors the order of receipt of refrigerators at the test station, we also denote the operator's connection with the HMI (Human-Machine Interface) panel in a similar way, add a note (Note) with a list of operator duties to the operator figure . Let's denote on the diagram that we have one operator and the operator panel is also one, like the controller.

- aggregation: means that one element of the class can exist separately from the whole class. Represented by an unfilled rhombus. It is clear that one refrigerator cannot be at the factory and not belong to any of the classes.

- composition: opposite to aggregation, shows that one object cannot exist without a class, this is our case, for example, let's draw a class of compressors, the plant does not need them on their own, only as part of refrigerators. The link is shown as a filled diamond.

You can also add a quantity to the connection, let's add the number of compressors for a refrigerator of each class to the diagram (the number of compressors for exactly one refrigerator).

Knowing this we make a Case diagram in the LusidChart program (pic.1). This software provides the ability to make different types of diagrams online. [4]

Pic. 1. Class Diagram made in LucidChart

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

In LusidChart we can use the diagram to create a code but in our case there will be very many additional points that also have to be taken into account that the code can note be properly composed. This diagram can be used to show the structure of the system and make it easier for any worker or operator to understand the working principal.

References

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

2. Development of a new methodology for acceptance testing of refrigeration appliances. D. A. Shurinova. Journal "Computer Science, Telecommunications and Management" Выпуск 4, том 3, 2021.

3. Dennis A. Systems Analysis and Design: An Object-Oriented Approach with UML, 6 изд.. 2020. - 544 с.

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

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

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