eos.agent.firm
Class CFirm

Object
  extended by eos.agent.Agent
      extended by eos.agent.firm.Firm
          extended by eos.agent.firm.CFirm

public class CFirm
extends Firm

Capital firm

Author:
zhihongx

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

CAPITAL_LIFE

public static final int CAPITAL_LIFE
life of capital (max number of time steps capital may be used

See Also:
Constant Field Values

INIT_CAPITAL_PRICE

public static final double INIT_CAPITAL_PRICE
initial capital price; for now capital price is fixed at this level

See Also:
Constant Field Values
Constructor Detail

CFirm

public CFirm(double initCheckingBal,
             double initSavingsBal,
             double initWageBudget)
Create a new capital firm

Parameters:
initCheckingBal - initial checking account balance
initSavingsBal - initial savings account balance
initWageBudget - initial wage budget
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)
Return output given labor amount of labor

Parameters:
labor - amount of labor
Returns:
output given labor amount of labor

getGood

public Good getGood(String good)
Return a reference to good owned by the firm.

Specified by:
getGood in class Agent
Returns:
a reference to a good given goodName