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

  What are the largest and the smallest number of vertices

If the height of a 2-tree is 3, what are (a) the largest and (b) the smallest number of vertices that can be in the tree?

  What exactly does it mean to be ethical

What exactly does it mean to be ‘ethical'? You might think something along the lines of ‘treat others the way you want to be treated' or ‘be a good person'.

  Determine the purpose of multiplexing in brief describe

question 1 which layers of the network model are specifically concerned with communication channel media and signaling

  What are the advantages of using small allocation units

What file types does a file management system usually support? What is an allocation unit? What are the advantages of using small allocation units?

  What heat flux must be removed at the stagnation point

Consider an aircraft flying at Mach 3 at an altitude of 17,500m. Suppose the aircraft has a hemispherical nose with a radius of 30 cm.

  What content type in s-mtme provides given security services

What content type in S/MTME provides the following security services: confidentiality, message integrity, authentication and nor repudiation.

  Distinguish between a file and a directory

What is a file? Distinguish between a file and a directory. Distinguish between a file and a file system. Why is a file a generic concept and not a

  Prepare a microsoft excel spreadsheet with any single

periodically it is good business practice to perform a comparative analysis of select groups of employees against

  Paste image of linear programming results window

A linear programming problem cost minimization problem has objective function: Minimize X +Y. Use QM for Windows to plot the feasible region. Paste image of Linear Programming Results window and Solution List window here

  Give an understanding on the different types of systems

give an understanding on the different types of systems

  What percentage of the books is green

What percentage of the books is green and what is the 90% confidence interval for the percentage of green books?

  Developing a monthly budget structure

Write down a program which declares a MonthlyBudget structure with the member variables in order to hold each of these expense categories.

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