edu.uci.ics.inf111.dvdvendor.devices
Interface DVDDispenserListener

All Known Implementing Classes:
DVDVendor

public interface DVDDispenserListener

The DVDDispenserListener interface must be implemented by any class which wishes to attach() to the DVDDispenser to receive DVDDispenserEvents.


Method Summary
 void notifyDVDDispenserEvent(DVDDispenser dd, DVDDispenserEvent event)
          This method is called on the Listener whenever a DVD dispenser event (receive or dispense) occurs.
 

Method Detail

notifyDVDDispenserEvent

void notifyDVDDispenserEvent(DVDDispenser dd,
                             DVDDispenserEvent event)
This method is called on the Listener whenever a DVD dispenser event (receive or dispense) occurs.

Parameters:
dd - The DVDDispenser which is sending the event (in case the Listener is registered to more than one DVDDispenser)
event - The DVDDispenserEvent, which encapsulates information about the state change in the DVDDispenser which prompted the event.