Design three layer architecture

Assignment Help Computer Engineering
Reference no: EM132022186

Assignment - Three Layer Architecture

Description - In this assignment you are to design your 3-layer architecture. The top layer will consist of:

  • The console user interface which you already have.
  • A graphical user interface (GUI) which you will need to build.

The middle layer is the control layer where your business rules are placed. There will be little for you in this layer because we don't have a number of business rules. So most of the requirements for the control layer will be simply to ensure the command from the UI layer is valid under the current application state and pass the work on to the appropriate model (data) layer.

The third layer is the model (data) layer. This layer contains the code that is specifically designed for data manipulation. For example, you may write out the data for a surgeon as the "Person" portion in a personrec.txt file while the Doctor portion of the properties get written to a doctorrec.txt file. Finally the specific surgeon properties may get written to a surgeonrec.txt file. When a surgeon is selected for display on the user interface, the control layer may request the surgeon data from the model layer, but the model layer will need to reassemble the data from three different files. That is the responsibility of the model layer.

Deliverables -

GUI Layouts - The most dramatic design will be the GUI.

State Change Models (SCM) - Each GUI window or function group should have a SCM associated with it. These models will be very simple. What I want to see is the major events that require response.

GUI Behavior Descriptions - Each GUI window should have a text-based description (scenario) of how a typical use would look like. For example, in the above window, it might be:

  • Enter patient name in name field; health number in health number field
  • If patient doesn't exist, a panel will display "That patient not found" and fields will be cleared
  • Select doctor from the drop-down list
  • Press cancel to not save and exit screen
  • Press save to commit data and exit screen

Of course you need to provide your own specification.

Control Layer Class: The control layer behavior have no visual component. The control layer is responsible for how the model objects interact. For example, the model layer contains the classes which define the ward, bed, patient, doctor, etc. However it is the control layer that interacts with these model layer objects to get thing done. So the control layer contains the references to all wards, patients and doctors.

Model Layer Classes: The Model layer behavior have no visual component. The model layer is responsible for actual definition and creation of objects in the model. For example, the model layer contains the classes which define the ward, bed, patient, doctor, etc. The control layer will manipulate the model layer for purposes of creating a patient, obtaining an empty bed in a ward and assigning a doctor to the patient. The model layer contains the object classes but do not drive the application. The model layer is responsible for things like writing the persistent data of each model object to permanent storage and reading it back again when the app is restarted at some later time. NOTE: Except for the persistent data component, your class models from the previous assignment should work without any changes. If you find you are making major changes to the model classes, you may be incorrectly dividing the responsibilities of the layers.

Specifications for the Application -

We aren't going to change the behavior of the application at this point. So here is the basic menu from the previous assignment:

1. quit

2. add a new patient to the system

3. add a new doctor to the system

4. assign a doctor to a patient

5. display the empty beds of the ward as a list of bed labels with purpose

6. assign a patient a bed of a particular

7. release a patient

8. drop doctor-patient association

In your control and model layers, you will provide the functionality necessary for the application to perform correctly. We will quickly go through each option.

Attachment:- Assignment File.rar

Reference no: EM132022186

Questions Cloud

Consideration and personalization of theories : Describe which motivational theory, as described in Harell and Daim in the required readings for this unit, would be the most appropriate for your industry
What would be cost of equity from new stock : If the company issued new stock, it would incur a 19% flotation cost. What would be the cost of equity from new stock?
Organizational culture to employees and customers : Discuss how mission statement, stories & language, physical layout, rules & policies, and rituals, conveyed the organizational culture
Classification to higher nutritional standard : Do you believe that one restaurant classification has more responsibility than another classification to higher nutritional standard?
Design three layer architecture : CMPT 270 Assignment - Three Layer Architecture. In this assignment you are to design your 3-layer architecture. The third layer is the model (data) layer
Nutritional standards concerning calories : San Francisco recently enacted new legislation that does not allow a toy to be included in a child's meal that does not meet certain nutritional standards
What are the components of competitive strategy : What are the components of competitive strategy? Within competitive strategy what is the relevance of a value change framework?
Explain the expectancy and equity theory : Explain the expectancy and equity theory when it pertains to learned/personal motivation?
Describe how you plan to continue developing your knowledge : Describe how you plan to continue developing your knowledge and understanding of entrepreneurship and innovation.

Reviews

len2022186

6/19/2018 1:09:30 AM

Submission Deadline: 18 at 11:55pm – Submit via Moodle! In this assignment you are to design your 3-layer architecture. Marking (total 50) - (20) GUI design and descriptions:, (20) Control Layer design and (10) Model layer design. I will need a sketch (which can be hand-drawn) of each window you are planning for your application interface. NOTE: Except for the persistent data component, your class models from the previous assignment should work without any changes. If you find you are making major changes to the model classes, you may be incorrectly dividing the responsibilities of the layers.

Write a Review

Computer Engineering Questions & Answers

  Discuss the flat velocity and temperature profiles

Computer analysis of turbulent flow between parallel planes with q"0 = const and constant fluid properties: Follow Prob. for further specification.

  Designing the class

Develop a test class with at least three unit tests for the program which translates a letter grade into the number grade. Letter grades are A, B, C, D, F, possibly followed by + or -.

  Draw a network diagram of a suitable gate arrangement

These devices are to be used in conjunction with a logic network of AND and OR gates and the output of the network is to be 1 when two or more of the sensing devices are producing signals of 1 - Draw a network diagram of a suitable gate arrangemen..

  Wap to calculate the original pixel colors

Using Eq.and the transform values from the preceding exercise, write a pro-gram to calculate the original (restored) 32 pixel colors.

  How does the system distinguish the two signals

The cell phone company in town uses code division multiplexing to transmit signals between its cell towers. How does the system distinguish the two signals?

  How do you convert contents of file shortlist to uppercase

How do you remove repeated lines from an unsorted file where repeated lines are contiguous. How do you convert the contents of the file shortlist to uppercase?

  Questionyour companys it department experiences a great

questionyour companys it department experiences a great deal of conflict in connection with its projects. there is a

  Write a program that create and prints a random phone number

Write a program that creates and prints a random phone number of the form XXX-XXX-XXXX. Include the dashes in the output. Do not let the first three digits.

  Write down a unix shell script

For an example, if I want to search for a text file/script that contains the most number of for loop statements, and have it displayed on the screen, How will I do that?

  Design a class that holds the following personal data

Design a class that holds the following personal data: name, address, age, and phone num-ber. Write appropriate accessor and mutator methods.

  Analyze the methods and procedures that will be used

Analyze the methods and procedures that will be used to conduct the testing, such as performance testing, load testing, and/or regression testing.

  How would you respond if the user told you he thought models

How would you respond if the user told you he thought models were a waste of time and that you should begin coding?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd