|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecteos.agent.Agent
eos.agent.firm.Firm
eos.agent.firm.CFirm
public class CFirm
Capital firm
Field Summary | |
---|---|
static int |
CAPITAL_LIFE
life of capital (max number of time steps capital may be used |
static double |
INIT_CAPITAL_PRICE
initial capital price; for now capital price is fixed at this level |
Fields inherited from class eos.agent.firm.Firm |
---|
capacity, capitalCost, labor, loan, marginalProfit, output, profit, revenue, totalCost, wage, wageBudget |
Constructor Summary | |
---|---|
CFirm(double initCheckingBal,
double initSavingsBal,
double initWageBudget)
Create a new capital firm |
Method Summary | |
---|---|
void |
act()
Called by Economy.step() in each step |
double |
convertToProduct(double labor)
Return output given labor amount of labor |
Good |
getGood(String good)
Return a reference to good owned by the firm. |
Methods inherited from class eos.agent.firm.Firm |
---|
getCapacity, getCapitalCost, getLabor, getLaborCost, getLoan, getMarginalProfit, getOutput, getProfit, getRevenue, getTotalCost, getWage |
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 |
Field Detail |
---|
public static final int CAPITAL_LIFE
public static final double INIT_CAPITAL_PRICE
Constructor Detail |
---|
public CFirm(double initCheckingBal, double initSavingsBal, double initWageBudget)
initCheckingBal
- initial checking account balanceinitSavingsBal
- initial savings account balanceinitWageBudget
- initial wage budgetMethod Detail |
---|
public void act()
act
in class Agent
public double convertToProduct(double labor)
labor
- amount of labor
public Good getGood(String good)
getGood
in class Agent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |