Saturday, August 10, 2019

Project Assignment week 5 Example | Topics and Well Written Essays - 1000 words

Project week 5 - Assignment Example Name of design pattern: Data access object Classification: Design Problem: The problem that will be got is that the users will be exposed to complex working and operation of the program. This should not be the case as the users should only access simple interface without any much complications of the system. Solution: The solution that will be applied in the system is the use of DAO pattern. In the system, the use cases who will be involved include making an online purchase, making an online inquiry, and making payment. The use case diagram below show the use cases which will need the use of this design pattern in our case. Consequences The first design pattern that will be used is that of the data access object. Data access object is a design pattern that is used to hide the complexity of the program for the user. Users are not supposed to get the details of how the program has been developed. This is where the data access object comes in. The DAO helps data access mechanisms to be able to change without depending on the code that makes use of the data. It is tasked with the management of the connection to the source of data in order to get or retrieve the data. This design pattern helps users to access what they are supposed to access. Real world example: There are applications that are used in the world today that make use of DAO. An example is Facebook which makes use of this design pattern to hide the working of the system in the background and present the users with a simple interface. Design pattern: Dispatcher pattern Classification: Design Problem: There is a problem when passing messages in a hierarchical model of software architectures that are found in the world today. There is a need to have a communication between the objects that are found in the same tier. Solution: The use of dispatcher pattern helps to send communication messages between objects which are found in the same tier. In the ANDC system, there will be the use of the same use cases l ike that of DAO. Consequences The dispatcher is a design pattern that is used to give the requests of the client to the proper party object that is found on the same level of tiers. The client requests are essential issues that come into play when designing the user interface and large programs. It is important to take care of requests from the client. Both data access object and dispatcher are two design patterns that deal with the users. They are design patterns that concern how the data and users will interact with the system. The difference between these two design patterns is that data access pattern is concerned with users and data. It is more concerned with the integrity of the data. This is unlike dispatcher which is tasked with how requests are handled. It is, therefore, more oriented to the user than the data or how the program operates (Papp 2001). Design pattern: Factory design pattern Classification: Design Problem: There is a problem of having the same collection of ob jects that can be instantiated together. There is a need to have a collection of these objects so that they can be instantiated together. Solution The solution to this problem is that similar objects will be collected and instantiated together. A design pattern that will undertake this process was designed. The actors that will be involved in the design include the customer, ANDC staff, and administrators. There are common tasks that will be undertaken by these groups. The diagram will include all the

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.