eos.agent.firm
Class NFirm

Object
  extended by eos.agent.Agent
      extended by eos.agent.firm.Firm
          extended by eos.agent.firm.ConsumerGoodFirm
              extended by eos.agent.firm.NFirm

public class NFirm
extends ConsumerGoodFirm

Necessity Firm

Author:
zhihongx

Field Summary
 
Fields inherited from class eos.agent.firm.ConsumerGoodFirm
A, beta, eUtilThreshold, lambda, phi, product, rUtilThreshold
 
Fields inherited from class eos.agent.firm.Firm
capacity, capitalCost, labor, loan, marginalProfit, output, profit, revenue, totalCost, wage, wageBudget
 
Constructor Summary
NFirm(double initCheckingBal, double initSavingsBal, double initOutput, double initWageBudget, int initCapital, CFirm[] capitalProducers)
          Create a new necessity firm
 
Method Summary
 Good getGood(String good)
          Return good with name good.
 
Methods inherited from class eos.agent.firm.ConsumerGoodFirm
act, convertToProduct
 
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
 

Constructor Detail

NFirm

public NFirm(double initCheckingBal,
             double initSavingsBal,
             double initOutput,
             double initWageBudget,
             int initCapital,
             CFirm[] capitalProducers)
Create a new necessity firm

Parameters:
initCheckingBal - initial checking account balance
initSavingsBal - initial savings account balance
initOutput - initial output
initWageBudget - initial wage budget
initCapital - initial amount of capital
capitalProducers - array of capital good producers
Method Detail

getGood

public Good getGood(String good)
Return good with name good.

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