0% found this document useful (0 votes)
18 views2 pages

Composite Daigram

The document outlines a system of components and classes for managing a canteen, including Customer, CanteenManager, Order, Menu, SalesReport, Payment, Bill, Feedback, AIRecommendation, and Kitchen. Each class has defined attributes and methods that facilitate interactions such as placing orders, managing menus, processing payments, and generating reports. Relationships among the classes are illustrated through direct interactions, dependencies, and composition, highlighting the interconnected nature of the system.

Uploaded by

avantiahiwale18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

Composite Daigram

The document outlines a system of components and classes for managing a canteen, including Customer, CanteenManager, Order, Menu, SalesReport, Payment, Bill, Feedback, AIRecommendation, and Kitchen. Each class has defined attributes and methods that facilitate interactions such as placing orders, managing menus, processing payments, and generating reports. Relationships among the classes are illustrated through direct interactions, dependencies, and composition, highlighting the interconnected nature of the system.

Uploaded by

avantiahiwale18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Components and Classes

1. Customer

Attributes: id, name, email, phoneNumber, preferredPaymentMethod

Methods: placeOrder(), cancelOrder(), register(), viewMenu()

2. CanteenManager

Attributes: username, password, email, phoneNumber

Methods: login(), addMenuItem(), updateMenuItem(), removeMenuItem(),


viewOrders(), viewFeedback(), generateSalesReport()

3. Order

Attributes: orderId, items, status, orderDate, paymentMethod

Methods: addItem(), removeItem(), cancelOrder()

4. Menu

Attributes: id, name, description, price

Methods: addMenuItem(), removeMenuItem(), displayMenu()

5. SalesReport

Attributes: totalOrders, topSellingItems

Methods: generateReport(), getTopSellingItems(), getRevenueSummary(),


displayReport()

6. Payment

Attributes: paymentId, method, isPaid

7. Methods: processPayment()
8. Bill

Attributes: date

Methods: generateBill()

9. Feedback

Attributes: feedbackId, orderId, customerId, rating, comments

Methods: submitFeedback(), getFeedbackByCustomer(), analyzeFeedback()

10. AIRecommendation

Attributes: recommendationMode

Methods: generateRecommendation(), learnFromFeedback()

11. Kitchen

Attributes: kitchenId, menuItems


Relationships and Key Interactions

 Direct Interactions: Solid arrows (e.g., Customer -> Order for placing orders)
 Dependencies: Dashed arrows (e.g., Order depends on Bill for generating bills)
 Composition: Solid diamonds (e.g., Order contains MenuItem objects)
 Customer Interaction: Ordering, feedback submission.
 Manager Operations: Menu management, report generation, viewing feedback.
 AI Recommendations: Generate based on order history and feedback.
 Payment and Billing: Linked through Order, Payment, and Bill for processing and
documentation.

You might also like