A Scenario Script for DispensingHolder and Item
P | N


I'm an item.

Someone tells me to vend myself.

I need some help getting enough cash.

I tell my dispensing holder to dispense.

I'm a dispensing holder.

Someone tells me to dispense.

I look to see if the item that I'm told to dispense is dispensable. If it is, then I dispense it.

I return a result to the sender - "dispensed" or "not dispensed."

I'm an item.

If my dispensing holder returns "dispensed," then I delete myself.

I need some help making change.

I return a "dispensed" or "not dispensed" result to the sender.


Previous | Next


Last modified at 7/15/97; 10:06:48 AM
Other Links of Interest
College of Computing | EduTech Institute | GVU Center
Mark Guzdial | Papers | CS 2390 Spring '97 Home Page | STABLE | MMC-CaMILE