Question: Given the classes above, Implement this class (OrderFascade) using the Fascade pattern to incorporate the process of ordering behind a simpler interface via the OrderFascade.

 Given the classes above, Implement this class (OrderFascade) using the Fascade

Given the classes above, Implement this class (OrderFascade) using the Fascade pattern to incorporate the process of ordering behind a simpler interface via the OrderFascade.

class OrderFascade { // Global in scope class Time {} class ServiceClass {} class CustomerID {} class ProductID {}

// CODE GOES HERE

}

class CustomerRecordService class Inventoryservice // Global in scope class ProductID () // Global in scope class Time t class Serviceclass t class CustomerID th class ProductID 0 public InventoryService) // Imagine Some Code Here public CustomerRecordService) /Imagine Some Code Here public boolean sellFromInventory (ProductID p) t // Imagine Some Code Here return true; public void recordorder (Time t, ServiceClass s, CustomerID c, ProductID p) f // Imagine Some Code Here class FulfillmentService t // Global in scope class Time th class ShipperDetailst) class ServiceClass class CustomerID ( class ProductID public Fulfillmentservice (ShipperDetails[] s) // Imagine Some Code Here private boolean doableETA(ServiceClass s, CustomerID c, Time t) // Imagine Some Code Here return true; public boolean fulfill (ProductID p, CustomerID c, Serviceclass s, Time t) ( if (doableETA(s,c,t)) return false; // Imagine Some Code Here return true

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!