All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class atm.Session
java.lang.Object
   |
   +----atm.Session
  -  public class Session
  -  extends Object
Representation for one ATM session serving a single customer.
   
  -   atm atm
-  The ATM on which the session is performed
  
-   CHOOSING_TRANSACTION_STATE CHOOSING_TRANSACTION_STATE
-  Asking the customer to choose a transaction type
  
-   EJECTING_CARD_STATE EJECTING_CARD_STATE
-  Ejecting the customer's card
  
-   FINAL_STATE FINAL_STATE
-  Session finished
  
-   PERFORMING_TRANSACTION_STATE PERFORMING_TRANSACTION_STATE
-  Peforming a transaction
  
-   pin pin
-  The PIN entered (or re-entered) by the customer
  
-   READING_CARD_STATE READING_CARD_STATE
-  Reading the customer's card
  
-   READING_PIN_STATE READING_PIN_STATE
-  Asking the customer to enter a PIN
  
-   state state
-  The current state of the session
   
  -   Session(ATM) Session(ATM)
-  Constructor
  
   
  -   performSession() performSession()
-  Perform the Session Use Case
  
-   setPIN(int) setPIN(int)
-  Change the pin recorded for the customer (if invalid pin extension
  was performed by a transaction
  
   
 atm
atm
 private ATM atm
  -  The ATM on which the session is performed
 
 pin
pin
 private int pin
  -  The PIN entered (or re-entered) by the customer
 
 state
state
 private int state
  -  The current state of the session
 
 READING_CARD_STATE
READING_CARD_STATE
 private static final int READING_CARD_STATE
  -  Reading the customer's card
 
 READING_PIN_STATE
READING_PIN_STATE
 private static final int READING_PIN_STATE
  -  Asking the customer to enter a PIN
 
 CHOOSING_TRANSACTION_STATE
CHOOSING_TRANSACTION_STATE
 private static final int CHOOSING_TRANSACTION_STATE
  -  Asking the customer to choose a transaction type
 
 PERFORMING_TRANSACTION_STATE
PERFORMING_TRANSACTION_STATE
 private static final int PERFORMING_TRANSACTION_STATE
  -  Peforming a transaction
 
 EJECTING_CARD_STATE
EJECTING_CARD_STATE
 private static final int EJECTING_CARD_STATE
  -  Ejecting the customer's card
 
 FINAL_STATE
FINAL_STATE
 private static final int FINAL_STATE
  -  Session finished
 
   
 Session
Session
 public Session(ATM atm)
  -  Constructor
   
- 
    -  Parameters:
    
-  atm - the ATM on which the session is performed
  
 
   
 performSession
performSession
 public void performSession()
  -  Perform the Session Use Case
 
 setPIN
setPIN
 public void setPIN(int pin)
  -  Change the pin recorded for the customer (if invalid pin extension
  was performed by a transaction
   
- 
    -  Parameters:
    
-  pin - the newly entered pin
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index