edu.uci.ics.inf111.dvdvendor.app
Enum DVDVendor.checkOutState

java.lang.Object
  extended by java.lang.Enum<DVDVendor.checkOutState>
      extended by edu.uci.ics.inf111.dvdvendor.app.DVDVendor.checkOutState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DVDVendor.checkOutState>
Enclosing class:
DVDVendor

public static enum DVDVendor.checkOutState
extends java.lang.Enum<DVDVendor.checkOutState>

This enumeration represents the states of the DVDVendor system:
READY means the system is awaiting a new customer
States for Rental:
ADDING means the system is prepared for another item to be added
PAYING means the system is awaiting for payment
DISPENSING means the system is awaiting notification that the items have been dispensed in the DVD Dispenser
States for Returning:
RECEIVING means the system is awaiting for the customer to return the product using the DVD Dispenser
CALCULATING means the system is calculating the charges.
Attempts to add items while PAYING or DISPENSING will result in errors. Attempts to pay for items while DISPENSING will result in errors. Attempts to dispense items while ADDING will result in errors.


Enum Constant Summary
ADDING
           
CALCULATING
           
DISPENSING
           
PAYING
           
READY
           
RECEIVING
           
 
Method Summary
static DVDVendor.checkOutState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DVDVendor.checkOutState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

READY

public static final DVDVendor.checkOutState READY

ADDING

public static final DVDVendor.checkOutState ADDING

PAYING

public static final DVDVendor.checkOutState PAYING

DISPENSING

public static final DVDVendor.checkOutState DISPENSING

RECEIVING

public static final DVDVendor.checkOutState RECEIVING

CALCULATING

public static final DVDVendor.checkOutState CALCULATING
Method Detail

values

public static final DVDVendor.checkOutState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DVDVendor.checkOutState c : DVDVendor.checkOutState.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static DVDVendor.checkOutState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name