|
||||||||||
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.ConsumerGoodFirm
public abstract class ConsumerGoodFirm
A consumer good firm implements an enjoyment firm or a necessity firm.
Field Summary | |
---|---|
protected double |
A
technology coefficient in the production function |
protected double |
beta
sensitivity of output to labor (power on L in the production function |
protected double |
eUtilThreshold
minimal capacity utilization to allow capital expansion |
protected double |
lambda
sensitivity of wage to money flow gap |
protected double |
phi
sensitivity of output to marginal profit |
protected Good |
product
product the firm is producing/selling (enjoyment or necessity) |
protected double |
rUtilThreshold
minimal capacity utilization to allow capital replacement |
Fields inherited from class eos.agent.firm.Firm |
---|
capacity, capitalCost, labor, loan, marginalProfit, output, profit, revenue, totalCost, wage, wageBudget |
Constructor Summary | |
---|---|
ConsumerGoodFirm(String productName,
double initCheckingBal,
double initSavingsBal,
double initOutput,
double initWageBudget,
int initCapital,
CFirm[] capitalProducers)
Create a new consumer good firm |
Method Summary | |
---|---|
void |
act()
Called by Economy.step() in each step. |
double |
convertToProduct(double labor,
double K)
Return output produced by labor amount of labor and K amount of capital |
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, getGood, getID, getName, isAlive |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double A
protected double beta
protected double phi
protected double lambda
protected double eUtilThreshold
protected double rUtilThreshold
protected Good product
Constructor Detail |
---|
public ConsumerGoodFirm(String productName, double initCheckingBal, double initSavingsBal, double initOutput, double initWageBudget, int initCapital, CFirm[] capitalProducers)
productName
- name of the productinitCheckingBal
- initial checking account balanceinitSavingsBal
- initial savings account balanceinitOutput
- initial outputinitWageBudget
- initial wage budgetinitCapital
- initial amount of capitalcapitalProducers
- array of capital good producersMethod Detail |
---|
public void act()
act
in class Agent
public double convertToProduct(double labor, double K)
labor
- amount of laborK
- amount of capital
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |