edu.uci.ics.inf111.dvdvendor.devices
Class DVDDispenserEvent

java.lang.Object
  extended by edu.uci.ics.inf111.dvdvendor.devices.DVDDispenserEvent

public class DVDDispenserEvent
extends java.lang.Object

The DVDDispenserEvent class serves to encapsulate the information associated with a change in the state of the DVDDispenser, so that it can easily be passed to the DVDDispenserListeners.


Field Summary
private  java.lang.String barCode
          The bar code read by the DVDDispenser.
private  java.lang.String eventType
          The event type detected by the DVDDispenser.
 
Constructor Summary
DVDDispenserEvent(java.lang.String eventType, java.lang.String barCode)
          Create a DVDDispenserEvent.
 
Method Summary
 java.lang.String getBarCode()
          Returns the bar code read by the DVDDispenser.
 java.lang.String getEventType()
          Returns the event type detected by the DVDDispenser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventType

private java.lang.String eventType
The event type detected by the DVDDispenser.


barCode

private java.lang.String barCode
The bar code read by the DVDDispenser.

Constructor Detail

DVDDispenserEvent

public DVDDispenserEvent(java.lang.String eventType,
                         java.lang.String barCode)
Create a DVDDispenserEvent. The object does not change after construction.

Parameters:
eventType - Event type detected by the DVDDispenser
barCode - Bar code read by the DVDDispenser
Method Detail

getEventType

public java.lang.String getEventType()
Returns the event type detected by the DVDDispenser.


getBarCode

public java.lang.String getBarCode()
Returns the bar code read by the DVDDispenser.