subject

A software company MicroOffice has produced four generations of Word Processing Applications, called Word90, Word00, Word10, and Word20. Suppose you are writing a program to test their GUIs. The GUI components we are interested in are Panel, Button, and Textbox. These GUI components look a little different in different generation. Each generation has it own program for testing these GUI components. To know which test to run, you will need to instantiate objects that correspond to each one of the GUI components.

We assume that generations of the Word to be tested are stored in a configuration file (text file). Because this situation fits the Abstract Factory pattern so well, you can use that pattern to organize the creation of objects that correspond to GUI components. You will also need to use the variation of singleton pattern to ensure that at most two instances of each generation in each test run. Please note finishing running all generations specified in the configuration file is considered as one test run. Here is an example of the configuration file content. You can create your own.

Word90
Word00
Word90
Word17
Word10
Word00
Word17
Word90
Word00

a. Give the UML diagram. You should integrate singleton into abstract factory pattern.
b. Give the code (in any language) based on the UML class diagram given in 'a'. As output, you need to display three different messages (e. g., "Panel Word90", Button Word90", and "Textbox Word90") for the generation specified in configuration file. You should give a warning message if the same generation are asked to run more than twice.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
"gps interaction and cognitive process" respond to the following: imagine that you have been asked to design a gps product that will have voice recognition and bluetooth capability. discuss and conceptualize a user interaction model. predict two (2) problems that may arise in gps products with voice recognition and bluetooth capability. recommend solutions for each of these issues. attention is one of the six cognition processes. when attention is applied to a design, the goal is to make it easier for the end user to quickly locate where he / she should type information on the computer or mobile device screen. compare and contrast how the google search engine and the microsoft bing search engine employ the attention cognition process. provide your opinion as to which search engine better employs the attention cognition process and explain why.
Answers: 3
question
Computers and Technology, 25.06.2019 04:10
This might be a bit off-topic, but i'm having trouble with a certain arg made by game theory. if there are any theorists out there that wanna , it would be appreciated!
Answers: 2
question
Computers and Technology, 25.06.2019 08:40
Anyone took cgs 1060 and took exam for simnet, slide 50 question on 1st exam.
Answers: 3
You know the right answer?
A software company MicroOffice has produced four generations of Word Processing Applications, called...
Questions
question
Mathematics, 27.02.2021 01:30
question
Mathematics, 27.02.2021 01:30
question
English, 27.02.2021 01:30
question
Mathematics, 27.02.2021 01:30
question
Mathematics, 27.02.2021 01:30