|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteos.agent.Agent
eos.agent.laborer.Laborer
public class Laborer
Laborer
Constructor Summary | |
---|---|
Laborer(double initOCGQty,
double initBal,
double initMort,
double initInt,
double initRev,
double initPay,
double initWage)
Create a new laborer |
Method Summary | |
---|---|
void |
act()
Called by Economy.step() in each step. |
double |
chooseSavings(double i,
double ir)
Return savings given total income i and interest rate ir |
Good |
getGood(java.lang.String goodName)
Return a reference to the good with name goodName |
double |
getOCGConsumption()
Return consumption of ordinary CG (in $) |
double |
getSavings()
Return savings |
Methods inherited from class eos.agent.Agent |
---|
die, getID, getName, isAlive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Laborer(double initOCGQty, double initBal, double initMort, double initInt, double initRev, double initPay, double initWage)
initOCGQty
- initial ordinary CG quantityinitBal
- initial bank balance (subaccount)initMort
- initial total mortgage loans subaccountinitInt
- initial interest subaccountinitRev
- initial revenue subaccountinitPay
- initial payments subaccountinitWage
- initial wage subaccountMethod Detail |
---|
public void act()
act
in class Agent
public Good getGood(java.lang.String goodName)
getGood
in class Agent
public double getSavings()
public double getOCGConsumption()
public double chooseSavings(double i, double ir)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |