All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class atm.transaction.Transfer
java.lang.Object
   |
   +----atm.transaction.Transaction
           |
           +----atm.transaction.Transfer
  -  public class Transfer
  -  extends Transaction
Representation for a transfer transaction
   
  -   amount amount
-  Amount of money to transfer
  
-   from from
-  Accounts to transfer from
  
-   to to
-  Account to transfer to
   
  -   Transfer(ATM, Session, Card, int) Transfer(ATM, Session, Card, int)
-  Constructor
  
   
  -   completeTransaction() completeTransaction()
-  Complete an approved transaction
  
  
-   getSpecificsFromCustomer() getSpecificsFromCustomer()
-  Get specifics for the transaction from the customer
  
   
 from
from
 private int from
  -  Accounts to transfer from
 
 to
to
 private int to
  -  Account to transfer to
 
 amount
amount
 private Money amount
  -  Amount of money to transfer
 
   
 Transfer
Transfer
 public Transfer(ATM atm,
                 Session session,
                 Card card,
                 int pin)
  -  Constructor
   
- 
    -  Parameters:
    
-  atm - the ATM used to communicate with customer
    -  session - the session in which the transaction is being performed
    -  card - the customer's card
    -  pin - the PIN entered by the customer
  
 
   
 getSpecificsFromCustomer
getSpecificsFromCustomer
 protected Message getSpecificsFromCustomer() throws CustomerConsole. Cancelled
  -  Get specifics for the transaction from the customer
   
- 
    -  Returns:
    
-  message to bank for initiating this transaction
    
-  Throws: CustomerConsole. Cancelled
    
-  if customer cancelled this transaction
    
-  Overrides:
    
-  getSpecificsFromCustomer in class Transaction
  
 
 completeTransaction
completeTransaction
 protected Receipt completeTransaction()
  -  Complete an approved transaction
   
- 
    -  Returns:
    
-  receipt to be printed for this transaction
    
-  Overrides:
    
-  completeTransaction in class Transaction
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index