eos.agent.firm
Class Firm

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

public abstract class Firm
extends Agent

Parent class of all firms.


Field Summary
protected  double capacity
          max output the firm could produce with the current capital and labor
protected  double capitalCost
          cost of capital in the last step
protected  double interest
          last-step interest
protected  Labor labor
          labor owned by the firm
protected  double marginalProfit
          marginal profit in the last step
protected  double output
          output in the last step
protected  double profit
          profit in the last step
protected  double revenue
          last-step revenue
protected  double totalCost
          total cost in the last step
protected  double wage
          wage (per worker) in the last step
protected  double wageBudget
          total wage budget in the last step
 
Constructor Summary
Firm(double initBal, double initMort, double initInt, double initRev, double initPay, double initWage)
          Create a new firm.
 
Method Summary
 double getCapacity()
          Return capacity in the last step
 double getCapitalCost()
          Return total capital cost in the last step
 double getLabor()
          Return amount of labor owned by the firm
 double getLaborCost()
          Return total labor cost in the last step
 double getMarginalProfit()
          Return marginal profit in the last step
 double getOutput()
          Return output in the last step
 double getProfit()
          Return profit in the last step
 double getTotalCost()
          Return total cost in the last step
 double getWage()
          Return wage (per worker) in the last step
 
Methods inherited from class eos.agent.Agent
act, 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

labor

protected Labor labor
labor owned by the firm


capacity

protected double capacity
max output the firm could produce with the current capital and labor


output

protected double output
output in the last step


wageBudget

protected double wageBudget
total wage budget in the last step


wage

protected double wage
wage (per worker) in the last step


revenue

protected double revenue
last-step revenue


interest

protected double interest
last-step interest


profit

protected double profit
profit in the last step


marginalProfit

protected double marginalProfit
marginal profit in the last step


capitalCost

protected double capitalCost
cost of capital in the last step


totalCost

protected double totalCost
total cost in the last step

Constructor Detail

Firm

public Firm(double initBal,
            double initMort,
            double initInt,
            double initRev,
            double initPay,
            double initWage)
Create a new firm.

Parameters:
initBal - initial account balance
initMort - initial total mortgages subaccount
Method Detail

getOutput

public double getOutput()
Return output in the last step

Returns:
output in the last step

getCapacity

public double getCapacity()
Return capacity in the last step

Returns:
capacity in the last step

getWage

public double getWage()
Return wage (per worker) in the last step

Returns:
wage (per worker) in the last step

getLabor

public double getLabor()
Return amount of labor owned by the firm

Returns:
amount of labor owned by the firm

getProfit

public double getProfit()
Return profit in the last step

Returns:
profit in the last step

getMarginalProfit

public double getMarginalProfit()
Return marginal profit in the last step

Returns:
marginal profit in the last step

getCapitalCost

public double getCapitalCost()
Return total capital cost in the last step

Returns:
total capital cost

getTotalCost

public double getTotalCost()
Return total cost in the last step

Returns:
total cost

getLaborCost

public double getLaborCost()
Return total labor cost in the last step

Returns:
total labor cost