Need explanation of the below state table. I really cannot wrap my brain around it.
Problem: Draw a state diagram that models a user's shopping session at amazon.com, starting with a search. Show the UML for an implementation using the state design pattern including key fields and headers for the methods in the states.
SOLUTION As an example, here are three states: matches, product detail and shopping cart. When a user searches for a product, all matches are shown. When the user clicks on a match, the product detail is shown, and when the user adds a product to the shopping cart, the shopping cart is shown. The following shows a state transition table (a search can be done on any of these pages). For any cell (state i, state j), the action in that cell leads to a transition from state i to state j.
...
Aucun commentaire:
Enregistrer un commentaire