Advanced Object Oriented Programming: Key Classes in Optimum Solutions

Verified

Added on  2023/06/10

|5
|693
|398
Report
AI Summary
This report provides an analysis of key classes and methods within the context of the Optimum Solutions application, focusing on advanced object-oriented programming (OOP) principles. It explains the roles of the Model, View, and Controller (MVC) architectural pattern, detailing how each component contributes to the application's functionality. The Model class encapsulates application data and business rules, while the Controller manages interactions between the View and Model. The View class is responsible for rendering data retrieved from the Model, with the application utilizing ArrayList for dynamic data storage. The report also discusses preconditions and postconditions for methods in the Model class, specifically concerning adding teacher data and displaying school and teacher information. References to external sources are included to support the analysis and provide further context.
tabler-icon-diamond-filled.svg

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
Running head: ADVANCED OBJECT ORIENTED PROGRAMING
Advanced Object Oriented Programing
Name of the Student
Name of the University
Authors note
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
1ADVANCED OBJECT ORIENTED PROGRAMING
Explanation of key classes and methods with reference to
Optimum Solutions
For the model or the DAO class it is mainly consists of application data for the
Optimum solution along with the business rules or the methods that coordinate the view and
controllers of the proposed application.
On the other hand, the controller class is considered as the interface between views
and model. It facilitates the input available from the view or the GUI and in turn converting
them to the commands for Optimum solution model or Optimum solution view.
Furthermore, the controller defines the behaviour of the application against the user requests,
plays a vital role in mapping the interactions with the model and select the appropriate view
as the response for a specific request from the application interface of the application by the
user with the appropriate data from the model.
Document Page
2ADVANCED OBJECT ORIENTED PROGRAMING
In the application the model is responsible for encapsulation of the state of the
application. I addition to that, model is also responsible for responding queries and redirects
the views according to the request from the user.
On the other hand, the view class of the application is responsible for rendering the
model retrieved data. Moreover, it allows the controller of the application to select the desired
view according to the request.
Description of the generic classes for the program
In order to implement the program, we have used the Array List class in order to
store the data from the View class of the proposed application for Optimum solution. As the
ArrayLists act as re-sizable array for storing the data therefore the size of the ArrayList is
never fixed.
Hence for a dynamic application using data like this can help in data storage by
growing and shrinking dynamically.
With the generic classes it becomes easy to reuse the codes in different parts of the
application by only invoking them.
Preconditions and post conditions for the methods in model class
Precondition for adding new teacher to the application: Before adding the details
of a teacher to the application the application should have successfully connected to the
database.
Document Page
3ADVANCED OBJECT ORIENTED PROGRAMING
Post condition for adding a teacher to the application database: After the
successful insertion of data to the database the application will prompt with a modal pop up
with the success message for the insertion operation.
Pre-condition of displaying the data for schools and teachers: For displaying the
data in the tables it is important to insert data in the database so that it can retrieve the related
data from the model through the controller and render that data on the view of the
application.
Post-condition of displaying the data for schools and teachers: With the successful
data retrieval and rendering on the pages the application will introduce a page with the data
and if there is no data then it will prompt with appropriate message.
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
4ADVANCED OBJECT ORIENTED PROGRAMING
Bibliography
Li, X., Zhang, L. and Ge, N., 2017, December. Framework Information Based Java
Software Architecture Recovery. In Software Engineering Conference Workshops
(APSECW), 2017 24th Asia-Pacific (pp. 114-120). IEEE.
Qazi, N., McElholm, M. and Maguire, L., 2018. A Model-View-Controller (MVC)
architecture for contextual visualisation of task-based multi-dimensional energy KPIs in a
manufacturing process. International Journal of Ambient Energy, 39(4), pp.406-413.
Raghavendra, G. and Pushpanjali, P., 2018. A Review on Java Frameworks for Web
Applications.
Sarker, I.H. and Apu, K., 2014. Mvc architecture driven design and implementation of
java framework for developing desktop application. International Journal of Hybrid
Information Technology, 7(5), pp.317-322.
chevron_up_icon
1 out of 5
circle_padding
hide_on_mobile
zoom_out_icon
logo.png

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]