eos.bank
Class Bank.Account

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

public static class Bank.Account
extends java.lang.Object

An account of an agent


Field Summary
 double balance
          current balance in account
 double interest
          last-step interest, reset this to zero after each step? ..
 double mortgages
          current total mortgage loan balances of owner of the account this is total of initial loans minus mortgage payments of principle already made
 double payments
          last-step payments, reset this to zero after each step? ..
 double revenue
          per-step revenue, reset this to zero after each step in updateSubAccounts()
 double savedInterest
          previous interest, saved in updateSubAccounts()
 double savedRevenue
          previous revenue, saved in updateSubAccounts()
 double savedWage
          previous wage, saved in updateSubAccounts()
 double smoothedBalance
          corresponding last-step smoothed values
 double smoothedInterest
           
 double smoothedMortgages
           
 double smoothedPayments
           
 double smoothedRevenue
           
 double smoothedWage
           
 double wage
          last-step wage (for laborers), reset this after each step? ..
 
Constructor Summary
Bank.Account(double initBal, double initMort, double initInt, double initRev, double initPay, double initWage)
          Create a new account with initial balances
 
Method Summary
 double getBalance()
          Return balance
 double getMortgages()
          Return mortgages
 double getPayments()
          Return payments this step
 double getSmoothedRevenue()
          Return per-account smoothed revenue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

balance

public double balance
current balance in account


mortgages

public double mortgages
current total mortgage loan balances of owner of the account this is total of initial loans minus mortgage payments of principle already made


interest

public double interest
last-step interest, reset this to zero after each step? .. where?


revenue

public double revenue
per-step revenue, reset this to zero after each step in updateSubAccounts()


savedRevenue

public double savedRevenue
previous revenue, saved in updateSubAccounts()


savedInterest

public double savedInterest
previous interest, saved in updateSubAccounts()


savedWage

public double savedWage
previous wage, saved in updateSubAccounts()


payments

public double payments
last-step payments, reset this to zero after each step? .. where?


wage

public double wage
last-step wage (for laborers), reset this after each step? .. where?


smoothedBalance

public double smoothedBalance
corresponding last-step smoothed values


smoothedMortgages

public double smoothedMortgages

smoothedInterest

public double smoothedInterest

smoothedRevenue

public double smoothedRevenue

smoothedPayments

public double smoothedPayments

smoothedWage

public double smoothedWage
Constructor Detail

Bank.Account

public Bank.Account(double initBal,
                    double initMort,
                    double initInt,
                    double initRev,
                    double initPay,
                    double initWage)
Create a new account with initial balances

Method Detail

getBalance

public double getBalance()
Return balance


getMortgages

public double getMortgages()
Return mortgages


getPayments

public double getPayments()
Return payments this step


getSmoothedRevenue

public double getSmoothedRevenue()
Return per-account smoothed revenue

Returns:
per-account smoothed revenue