Question: //Java Class name - DBEngine.java package assignment2; public class DBEngine { public static String DB_TYPE; public int items(String username) { // Do the logic and

//Java Class name - DBEngine.java

package assignment2;

public class DBEngine {

public static String DB_TYPE;

public int items(String username) { // Do the logic and return the # of items return 0; }

public Order readmysql(String username) { // read data from mysql DB return null; } public Order readoracle(String username) { // read data from oracle DB return null; }

}

//Java Class name - UserCatalog.java

package assignment2;

import java.util.ArrayList; import java.util.List;

public class UserCatalog {

List getitems(String username){ List x = new ArrayList(); DBEngine e = new DBEngine(); int y = e.items(username); for(int i=0; i { if (DBEngine.DB_TYPE == "MY_SQL") { Order a = e.readmysql(username); x.add(a); } else { if (DBEngine.DB_TYPE == "MY_SQL") { Order a = e.readoracle(username); x.add(a); } } } return x; } }

//Java Class name - Order.java

package assignment2;

public class Order {

}

Question:

You are assessing the quality of the order management system (OMS). The OMS has the

following components (classes).

Please use the quality measurement techniques to assess the current structural quality of the OMS.

Then, please answer the following questions.

1. Please measure the coupling ratio of the OMS.

2. Please identify practices (e.g., architecture practices) needed to improve the structural

quality of the OMS. For each recommended practice, please identify one of the impacted

structural quality attributes of the OMS.

3. Please revise the source code to improve the structural quality of the OMS.

4. Please describe the overall layered architecture of the OMS. Please also illustrate how each

component (i.e., class) fits in the layered architecture layer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!