Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 trueStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started