eos.agent.firm
Class ConsumerGoodFirm

java.lang.Object
  extended by eos.agent.Agent
      extended by eos.agent.firm.Firm
          extended by eos.agent.firm.ConsumerGoodFirm
Direct Known Subclasses:
OCGFirm

public abstract class ConsumerGoodFirm
extends Firm

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

PROFIT_TC

public static final double PROFIT_TC
See Also:
Constant Field Values

A

protected double A
technology coefficient in the production function


beta

protected double beta
sensitivity of output to labor (power on L in the production function)


phi

protected double phi
sensitivity of output to marginal profit


capitalQuantity

protected int capitalQuantity
capital quantity


product

protected Good product
product the firm is producing/selling (OrdinaryCG for now)

Constructor Detail

ConsumerGoodFirm

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)
Create a new consumer good firm

Parameters:
productName - name of the product
initOutput - initial output
initWageBudget - initial wage budget
initCapital - initial amount of capital
capitalProducers - array of capital good producers
Method Detail

act

public void act()
Called by Economy.step() in each step.

Specified by:
act in class Agent

convertToProduct

public double convertToProduct(double labor,
                               double K)
production function Return output produced by labor amount of labor and K amount of capital

Parameters:
labor - amount of labor
K - amount of capital
Returns:
output produced by labor amount of labor and K amount of capital

getCapital

public Capital getCapital()
Return a reference to this ConsumerGoodFirm's Capital

Returns:
a reference to the agent's account