[Sequence diagram] Create 3 sequence diagrams for following 3 usage scenario. My
ID: 3603172 • Letter: #
Question
[Sequence diagram] Create 3 sequence diagrams for following 3 usage scenario.
My Project: drive.google.com/drive/folders/0Bz-X3EXA0Q75a0xKUHF4VVI2N0k
- Use program logics e.g. iteration or loop (for / while) , Condition (if-else): Option and Alternative
- You can use Astah to create the sequence diagram. (astah.net/editions/community)
Hint: drive.google.com/open?id=0Bz-X3EXA0Q75SUM0NDJtRXNzeDg
>>> Please clearly create 3 sequence diagrams <<<
Use CaseTop-Up Credift Main Actor Input System Response Success1. User login to the website Scenario 2. User enter to profile 3. User enter to top-up page 4. user fill in credit/debit card information 5. The system prompts the user to confirm the payment 6. User verified payment 7. The system checks the Card Information with bank 8. The system take off money from bank account. 9. System keeps record of transaction 10. The system notifies that the top-up is complete Extensions Actor Input System Response 5a. Incorrect credit/debit card information. The system cannot take off money from the card 1. The system prompts users to re-fill information 2. Return to Main Success Scenario step 4Explanation / Answer
A common issue with sequence diagrams is how to show looping and conditional behavior. The first thing to point out is that this isn’t what sequence diagrams are good at. If you want to show control structures like this, you are better off with an activity diagram or indeed with code itself. Treat sequence diagrams as a visualization of how objects interact rather than as a way of modeling control logic.
That said, here’s the notation to use. Both loops and conditionals use interaction frames, which are ways of marking off a piece of a sequence diagram
In general, frames consist of some region of a sequence diagram that is divided into one or more fragments. Each frame has an operator and each fragment may have a guard. (Table 4.1 lists common operators for interaction frames.) To show a loop, you use the loop operand with a single fragment and put the basis of the iteration in the guard. For conditional logic, you can use an alt operator and put a condition on each fragment. Only the fragment whose guard is true will execute. If you have only one region, there is an opt operator.
Interaction frames are new in UML 2. As a result, you may see diagrams prepared before UML 2 and that use a different approach; also, some people don’t like the frames and prefer some of the older conventions. Figure 4.5 shows some of these unofficial tweaks
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.