Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Draw the interaction diagram for the following contract: If a collaboration diagram is used, be sure that all messages' sequence numbers are shown. Contract: Transfer

Draw the interaction diagram for the following contract:
If a collaboration diagram is used, be sure that all messages' sequence numbers are shown.
Contract: Transfer Amount Between Two Accounts
Operation: transfer (amount, AcN01, AcN02)
Responsibilities: Transfer an amount from a given account to anther
Cross References: Use Case: Bank Transactions
Preconditions: All accounts are accessible through :Bank object that is already exist and has access to all :Account objects. :Atm is also available as a controller object.
Postconditions:
The two Accounts were found through a Bank object.
The amount was debited from Account 1 if enough fund is available.
The second Account was credited.

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

Exploring Public Relations And Management Communication

Authors: Ralph Tench, Stephen Waddington

5th Edition

1292321741, 9781292321745

More Books

Students also viewed these Finance questions

Question

Solve each system of equations. xy = -5 2x + y = 3

Answered: 1 week ago