logo

Car Factory Pattern Creation

   

Added on  2022-08-21

8 Pages1233 Words13 Views
 | 
 | 
 | 
Car Factory Pattern Creation
Name of the Student
Name of the University
Author Note
Introduction
A Unified Modeling Language (UML) diagram can be used to model a business
process modeling technique. In this paper you will learn about the various use of UML
diagrams and the tools that are used to draw the same. A case study of a car factory is taken
into as an example to get a clear idea about creating and using a UML diagram of the same
(car factory case study) (Afanasyev et al., 2015). After creation of the required UML
Car Factory Pattern Creation_1

diagram, the full car factory scenario will be coded using C++ programming language to get
a clear idea about the working structure of the case study.
Discussion
A UML is used to visually represent a functioning (working) structure of a system.
The structure includes various actors interacting with the system. It will give a better idea
about how the system works. In the end, coding of the same is done to obtain the working
version of the system on a software base. The process of drawing the diagram before and
implementing the code based on the diagram afterward is known as ‘Forward Design.’ In the
case of ‘Backward Design,’ the same things are done in reverse direction i.e., first the coding
part is done, and then UML diagrams are drawn in documentation format. It also includes the
actors interacting with the system (Nishi, 2015).
Various tools like AgroUML, Gliffy, Microsoft Visio, Lucidchart, Magic Draw, and
many more can be used to draw UML diagrams (Thong & Ameedeen, 2019). Microsoft Visio
(MS Visio) will be used for drawing the UML diagram because of the simplicity of the
application software and easy understanding. MS Visio is one of the most used and popular
visualization and chart making software. It is mainly used to draw and visualize various
proprietary diagrams. Platforms like browsers, windows, iPad app, and virtual machines are
supported by it along with programming languages like C#, C++, VSDM, and VSDX.
Subscription of the same (MSVisio) can vary from $18/month to $590 a year (for
Professional version).
The following case study of an abstract factory pattern will give a clear idea about
how MS Visio can be used to analyze the car factory parts/tasks. It will depict the interaction
and relation between each part of the car factory. You will also get an understanding about
Car Factory Pattern Creation_2

the client’s interaction with the system. The diagram will have a separate entity for each
functioning part of the case study.
Case Study
Consider an abstract factory (CarFactory) pattern diagram. It has two car factories;
one for electric cars and the other for the gas-powered cars. The electric car producing part of
the factory will have the production of its electric engines along with the car doors. Similarly,
for the gas-powered car-producing part of the factory, it will also have a production of its
gas-powered engines and doors. The following diagram can be drawn based on the above
case study to get an idea about the functioning parts of the whole system.
Diagram
Fig 1: Abstract Factory – CarFactory case study – UML Class Diagram
From the above diagram (Fig 1), it can be concluded that the client only interacts with
the system through different interfaces. This type of interaction results in easier manipulation
of the whole system (Object Oriented Design, 2020). The various parts within the system
interact with each other to deliver the final product in a category-based arrangement. It also
increases the understandability of the output received from the system. The code creation and
execution of the same as of Fig 1 are shown below:
Car Factory Pattern Creation_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Systematic Identification of Consistency
|8
|991
|17

Animal Cloning Using Prototype Design Pattern
|10
|2180
|9

Create Objects With Creational Design Patterns
|7
|823
|17

(Doc) UML Diagram Assignment
|42
|1048
|155

UML Diagrams: Types and Purposes
|14
|689
|416

Enterprise Architect Designing
|13
|2260
|26