Answered step by step
Verified Expert Solution
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
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