eos.bank
Class Bank.Account

Object
  extended by eos.bank.Bank.Account
Enclosing class:
Bank

public static class Bank.Account
extends Object

An account of an agent

Author:
zhihongx

Field Summary
 double interest
          interest in the last step
 double priIC
          primary income in the last step
 double secIC
          secondary income in the last step
 
Constructor Summary
Bank.Account(double checkingBal, double savingsBal)
          Create a new account with checking account balance checkingBal and savings account balance savingsBal
 
Method Summary
 double getBalance(int acctType)
          Return the balance of acctType
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

priIC

public double priIC
primary income in the last step


secIC

public double secIC
secondary income in the last step


interest

public double interest
interest in the last step

Constructor Detail

Bank.Account

public Bank.Account(double checkingBal,
                    double savingsBal)
Create a new account with checking account balance checkingBal and savings account balance savingsBal

Method Detail

getBalance

public double getBalance(int acctType)
Return the balance of acctType

Parameters:
acctType -
Returns:
balance of acctType