Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UML DESIGN PATTERNS class diagram: Enhance the above class diagram to contain the Command pattern. As part of your answer modify the classes with appropriate

UML DESIGN PATTERNS

class diagram:

image text in transcribed

Enhance the above class diagram to contain the Command pattern. As part of your answer modify the classes with appropriate suitable classes, you have defined as part your class diagram relevant to the case study.

Command pattern:

image text in transcribed

Use case / case study:

"H&K, a global public relations firm headquartered in New York, has embedded a form of micro-payment called "Beenz" (class BeenzProgram) throughout the site, as an incentive to encourage employees (class Employee) to use the Extranet to find out information, contribute with case studies, bios and interact more with the portal.

Each "Been" is 0.001$ can be redeemed by employees for books, CDs, and even vacations (class Prize). For example, 110.000 Beenz could lead to an employee to win a weekend for two in a Caribbean villa.

Each Employee can join the "Beenz program" by creating an Account (class BeenzAccount).

Transactions (class Transaction) on Beenz accounts can involve various services provided by the Beenz Program and are performed per single account.

There are two kinds of transactions: Earning (class Earning) and Burning (class Burning), but for our specific use case, only the Burning transaction will be used."

if you need more info please comment, thank you

Prize Employee BeenzProgram +name: String 1 +joined by title: String +program name: String +programlD +phone: Integer +program 0.. +address: String +enroll(Employee: Employee) +dateofBirth: Integer +addAccount(account: BeenzAccount) +addAccount(account: BeenzAccount) 1 +owner +prizes +pointsEarned: Integer +pointsBurned: Integer +Description: String +prizelD: Integer +getTransactionIDO +submito +generated by 1 +account BeenzAccount +accountID: Integer +currentBeenz: Integer setPoints(points: Integer) +burn(burn: Integer) +isEmptyO: Boolean 1 +listAvailablePrizes +getEmployeeld(employee: Employee) +started by +setTransaction(transaction: Transaction) +setAccountID (accountID: Integer) 0.* +transaction Transaction +points: Integer +transaction 0.* +transactionID +Program(: BeenzProgram Burning +burnBeenzo +get TransactionIDO +getCurrentBeenz Command Pattern Structure: Ref: Gamma et al. Client Invoke Command +Execute() Receiver Concrete Command +state +Execute +Action +receive receiver --> Action

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

Step: 3

blur-text-image

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions