|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.inf111.dvdvendor.devices.DVDDispenserEvent
public class DVDDispenserEvent
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 |
---|
private java.lang.String eventType
private java.lang.String barCode
Constructor Detail |
---|
public DVDDispenserEvent(java.lang.String eventType, java.lang.String barCode)
eventType
- Event type detected by the DVDDispenserbarCode
- Bar code read by the DVDDispenserMethod Detail |
---|
public java.lang.String getEventType()
public java.lang.String getBarCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |