<div>
CK: 7/9/09 Psuedo-UML describing the cart object and the basic user scenarios.
</div>
<img src="http://yuml.me/diagram/class/
[ProductCart
|
-id:int;
+name:string;
-status:bool;
+items:array;
|
+load(id);
+save(id);
+update();
+add(item);
+remove(item);
+clear();
|
+changed event
]
^-[Products|
+id:int;
+name:string;
]
"/>
<img src="http://yuml.me/diagram/class/
[document
|
on Cart.change
]
^-
[update display]
" />
<img src="http://yuml.me/diagram/usecase/
[User]-(click load),
(click load)-(Cart.load),
(click load)-(active cart|prompt to save),
(active cart|prompt to save)-(go to save),
(active cart|prompt to save)-(Cart.load),
(Cart.load)-(Cart.changed),
[User]-(click save),
(click save)-(prompt for cart name),
(prompt for cart name)-(Cart.save),
(Cart.save)-(Cart.clear),
(Cart.clear)-(Cart.changed),
(click save)-(not login|prompt for login),
(not login|prompt for login)-(prompt for cart name),
(not login|prompt for login)-(go to login),
[User]-(click item),
(click item)-(Cart.add/remove),
(Cart.add/remove)-(logged in|Cart.update),
(logged in|Cart.update)-(Cart.changed),
(Cart.add/remove)-(Cart.changed)
" />