|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecteos.agent.Agent
eos.agent.firm.Firm
eos.agent.firm.ConsumerGoodFirm
public abstract class ConsumerGoodFirm
A consumer good firm implements a specialized firm, OrdinaryCG for now
| 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 int |
capitalQuantity
capital quantity |
protected double |
phi
sensitivity of output to marginal profit |
protected Good |
product
product the firm is producing/selling (OrdinaryCG for now) |
static double |
PROFIT_TC
|
| Fields inherited from class eos.agent.firm.Firm |
|---|
capacity, capitalCost, interest, labor, marginalProfit, output, profit, revenue, totalCost, wage, wageBudget |
| Constructor Summary | |
|---|---|
ConsumerGoodFirm(java.lang.String productName,
double initBal,
double initMort,
double initInt,
double initRev,
double initPay,
double initWage,
double initOutput,
double initWageBudget,
int initCapital,
double initLabor,
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)
production function Return output produced by labor amount of labor and K amount of capital |
Capital |
getCapital()
Return a reference to this ConsumerGoodFirm's Capital |
| Methods inherited from class eos.agent.firm.Firm |
|---|
getCapacity, getCapitalCost, getLabor, getLaborCost, getMarginalProfit, getOutput, getProfit, getTotalCost, getWage |
| Methods inherited from class eos.agent.Agent |
|---|
die, getGood, getID, getName, isAlive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double PROFIT_TC
protected double A
protected double beta
protected double phi
protected int capitalQuantity
protected Good product
| Constructor Detail |
|---|
public ConsumerGoodFirm(java.lang.String productName,
double initBal,
double initMort,
double initInt,
double initRev,
double initPay,
double initWage,
double initOutput,
double initWageBudget,
int initCapital,
double initLabor,
CFirm[] capitalProducers)
productName - name of the productinitOutput - initial outputinitWageBudget - initial wage budgetinitCapital - initial amount of capitalcapitalProducers - array of capital good producers| Method Detail |
|---|
public void act()
act in class Agent
public double convertToProduct(double labor,
double K)
labor - amount of laborK - amount of capital
public Capital getCapital()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||