|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecteos.agent.Agent
eos.agent.laborer.Laborer
public class Laborer
Laborer
Constructor Summary | |
---|---|
Laborer(double initEQty,
double initNQty,
double initCheckingBal,
double initSavingsBal,
double initSavingsRate)
Create a new laborer |
Method Summary | |
---|---|
void |
act()
Called by Economy.step() in each step. |
double |
getConsumption()
Return consumption (in $) |
double |
getEConsumption()
Return consumption of enjoyment |
Good |
getGood(String goodName)
Return a reference to the good with name goodName |
double |
getIncome()
Return total income in the last step |
double |
getNConsumption()
Return consumption of necessity (in $) |
double |
getSavings()
Return savings |
double |
getSavingsRate()
Return savings rate |
double |
getWage()
Return wage in the last step |
Methods inherited from class eos.agent.Agent |
---|
die, getID, getName, isAlive |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Laborer(double initEQty, double initNQty, double initCheckingBal, double initSavingsBal, double initSavingsRate)
initEQty
- initial enjoyment quantityinitNQty
- initial necessity quantityinitCheckingBal
- initial checking account balanceinitSavingsBal
- initial savings account balanceinitSavingsRate
- initial savings rateMethod Detail |
---|
public void act()
act
in class Agent
public Good getGood(String goodName)
getGood
in class Agent
public double getWage()
public double getIncome()
public double getConsumption()
public double getSavings()
public double getSavingsRate()
public double getNConsumption()
public double getEConsumption()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |