![]() ![]() To emphasis the flow, see the high-level sequence flow below:īelow are details in the follow-on use case scenarios with alternates, exceptions, reference business rules and decision tables : Both these use cases utilized the Validate and Print Receipt use case for standardizing generalized behavior at the beginning and end of the application. The specialized behavior use cases are Purchase Fuel and Purchase Lottery Ticket. The same generalization / specialization technique is used for the use cases. The Customer actor covers all purchasers of gasoline regardless of age. Note: There is no generalization / specialization in the As-Is diagram (Figure 1). Not necessarily the reverse due to the age restriction for purchasing a lottery ticket the diagram designates this relationship via a line with a hollow arrow between the Adult Customer and Customer (see Figure 2). If the Customer is at least 18 years of age, then the Customer can access Purchase Lottery Ticket as an Adult Customer. The Adult Customer actor can step into the role of the Customer actor to Purchase Fuel, but The Customer actor has no age restriction and has an association with Purchase Fuel. But, Customer may not access Purchase Lottery Ticket due to the age restriction for buying a lottery ticket. The Adult Customer actor must be at least 18 years of age to comply with the new state law this actor has an association with Purchase Lottery Ticket. There are two primary actors: Customer and Adult Customer. The To-Be diagram (Figure 2) in our example uses the generalization / specialization technique for both actors and use cases. These changes provide an opportunity to sell lottery tickets at the fuel pump (see Figure 2). Note: There is no age restriction for purchasing gasoline. The customer buying the lottery ticket must at least 18 years of age.The lottery numbers are selected only by a state lottery system not by the customer and are limited to the current week’s lottery.Only a single lottery ticket can be purchased at a time.State issued restrictions concerning debit lottery ticket sales are:.The state government has allowed lottery ticket sales via a debit card (off-line, PIN not required).However in this example, there recently has been change in government laws: The use case diagrams above reflect a gas station business that currently sells fuel at the pump (see Figure 1). Gas Station Business (To-Be) using the Generalization (Validate Credit and Print Receipt) / Specialization (Purchase Fuel, Purchase Lottery Ticket) technique The business added a car wash a couple of years later the additional capability included a car wash service offered at the gas pump via an > use case.įigure 2. ![]() The original gas station business did not have car wash. This article provides examples of both the diagrams and the scenarios for a future gas station business.įigure 1. And they are typically limited to a use case diagram like the two below. Several years ago I was looking for examples using the generalization / specialization technique with use cases. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |