cscie160.project
Class TransactionNotification

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--cscie160.project.TransactionNotification
All Implemented Interfaces:
ATMParams, java.io.Serializable

public class TransactionNotification
extends java.util.EventObject
implements java.io.Serializable, ATMParams

See Also:
Serialized Form

Field Summary
protected  java.lang.Object fSource
           
 
Fields inherited from class java.util.EventObject
source
 
Fields inherited from interface cscie160.project.ATMParams
ACCOUNTSTRLENGTH, BALANCEINQUIRY, DEPOSIT, TRANSFER, WITHDRAWAL
 
Constructor Summary
TransactionNotification(java.lang.Object mSrc, int mTransactionType, cscie160.project.AccountInfo mSourceAcc, cscie160.project.AccountInfo mTargetAcc, float mAmount)
          | Constructor
 
Method Summary
 float getAmount()
           
 java.lang.Object getSource()
           
 cscie160.project.AccountInfo getSourceAcc()
           
 cscie160.project.AccountInfo getTargetAcc()
           
 int getTransactionType()
          | Accessors.
 java.lang.String toString()
          Override the toString() method of java.lang.Object for printing Elevator values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fSource

protected java.lang.Object fSource
Constructor Detail

TransactionNotification

public TransactionNotification(java.lang.Object mSrc,
                               int mTransactionType,
                               cscie160.project.AccountInfo mSourceAcc,
                               cscie160.project.AccountInfo mTargetAcc,
                               float mAmount)
| Constructor

Method Detail

toString

public java.lang.String toString()
Override the toString() method of java.lang.Object for printing Elevator values.

Overrides:
toString in class java.util.EventObject
Returns:
summary of transaction.

getTransactionType

public int getTransactionType()
| Accessors.


getSourceAcc

public cscie160.project.AccountInfo getSourceAcc()

getTargetAcc

public cscie160.project.AccountInfo getTargetAcc()

getAmount

public float getAmount()

getSource

public java.lang.Object getSource()
Overrides:
getSource in class java.util.EventObject