Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions