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.


Variable Index

 o atm
The ATM on which the session is performed
 o CHOOSING_TRANSACTION_STATE
Asking the customer to choose a transaction type
 o EJECTING_CARD_STATE
Ejecting the customer's card
 o FINAL_STATE
Session finished
 o PERFORMING_TRANSACTION_STATE
Peforming a transaction
 o pin
The PIN entered (or re-entered) by the customer
 o READING_CARD_STATE
Reading the customer's card
 o READING_PIN_STATE
Asking the customer to enter a PIN
 o state
The current state of the session

Constructor Index

 o Session(ATM)
Constructor

Method Index

 o performSession()
Perform the Session Use Case
 o setPIN(int)
Change the pin recorded for the customer (if invalid pin extension was performed by a transaction

Variables

 o atm
 private ATM atm
The ATM on which the session is performed

 o pin
 private int pin
The PIN entered (or re-entered) by the customer

 o state
 private int state
The current state of the session

 o READING_CARD_STATE
 private static final int READING_CARD_STATE
Reading the customer's card

 o READING_PIN_STATE
 private static final int READING_PIN_STATE
Asking the customer to enter a PIN

 o CHOOSING_TRANSACTION_STATE
 private static final int CHOOSING_TRANSACTION_STATE
Asking the customer to choose a transaction type

 o PERFORMING_TRANSACTION_STATE
 private static final int PERFORMING_TRANSACTION_STATE
Peforming a transaction

 o EJECTING_CARD_STATE
 private static final int EJECTING_CARD_STATE
Ejecting the customer's card

 o FINAL_STATE
 private static final int FINAL_STATE
Session finished

Constructors

 o Session
 public Session(ATM atm)
Constructor

Parameters:
atm - the ATM on which the session is performed

Methods

 o performSession
 public void performSession()
Perform the Session Use Case

 o 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