|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteos.economy.Economy
public class Economy
Economy provides a container to hold all agents and markets together.
Field Summary | |
---|---|
static double |
CGDEMAND_TC
time constant for exponential smoothing of consumption |
static double |
CGSUPPLY_TC
time constant for exponential smoothing of consumption |
static double |
CPI_TC
time constant for smoothing cpi |
static ExpSmoother |
demandCGSmoother
|
static double |
INFLATION_TC
time constant for smoothing inflation |
static double |
LOAN_IR_TC
time constant for exponential smoothing of loanIR |
static ExpSmoother |
supplyCGSmoother
|
static double |
WAGE_TC
time constant for smoothing wage |
Constructor Summary | |
---|---|
Economy()
|
Method Summary | |
---|---|
static void |
addAgent(Agent agent)
Add agent to the economy |
static void |
addMarket(Market market)
Add market to the economy |
static java.util.Collection<Agent> |
getAgents()
Return agents who are still alive |
static double |
getLaborerNetBalance()
Return laborerNetBalance (used in Bank to update IR) this is recomputed when called and is therefore up-to-date |
static Market |
getMarket(java.lang.String good)
Return market corresponding to good |
static double |
getSmoothedAvgWage()
Return smoothedAvgWage |
static double |
getSmoothedCPI()
Return smoothedCPI |
static double |
getSmoothedInflation()
Return exponentially smoothed inflation |
static double |
getSmoothedLoanIR()
Return exponentially smoothed loanIR |
static double |
getSupplyOfLoans()
Return supply of loans |
static int |
getTimeStep()
Return the current time step ) |
static double |
getTotDemandCG()
return total demand of CG update total totDemandCG and smoothedTotDemandCG (both in dollars) |
static void |
run(int steps)
Run simulation for steps number of steps |
static void |
step()
Run simulation for one step |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double CPI_TC
public static final double INFLATION_TC
public static final double WAGE_TC
public static final double CGDEMAND_TC
public static final double CGSUPPLY_TC
public static final double LOAN_IR_TC
public static ExpSmoother demandCGSmoother
public static ExpSmoother supplyCGSmoother
Constructor Detail |
---|
public Economy()
Method Detail |
---|
public static Market getMarket(java.lang.String good)
good
- name of a good
public static void run(int steps)
steps
- public static int getTimeStep()
public static void step()
public static double getSmoothedLoanIR()
public static double getSmoothedInflation()
public static java.util.Collection<Agent> getAgents()
public static double getTotDemandCG()
public static double getSmoothedAvgWage()
public static double getSmoothedCPI()
public static void addMarket(Market market)
market
- public static void addAgent(Agent agent)
agent
- public static double getLaborerNetBalance()
public static double getSupplyOfLoans()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |