|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteos.market.Market
eos.market.CapitalMarket
public class CapitalMarket
A market trading capital good
Field Summary |
---|
Fields inherited from class eos.market.Market |
---|
good |
Constructor Summary | |
---|---|
CapitalMarket()
Create a new capital market |
Method Summary | |
---|---|
void |
addBuyOffer(Capital capital,
int qty)
Add a buy offer |
void |
addSellOffer(CFirm seller,
double price,
int capacity)
Add a sell offer |
void |
clear()
Clear the market |
static double |
getCapitalPrice()
Return price of a machine (principle, in dollars) |
static double |
getDemandForCapital()
Return demand for capital (in machines) |
double |
getLastMktGoodVol()
Return volume of capital good traded |
static int |
getNewThisStep()
Return number of new machines bought this step |
Methods inherited from class eos.market.Market |
---|
getGood |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CapitalMarket()
Method Detail |
---|
public void addBuyOffer(Capital capital, int qty)
capital
- a reference to the capital stock owned by the buyer
qty
- quantity of machines to buypublic void addSellOffer(CFirm seller, double price, int capacity)
seller
- price
- per-step price of each unit
capacity
- max quantity of capital available for salepublic void clear()
clear
in class Market
public double getLastMktGoodVol()
public static int getNewThisStep()
public static double getDemandForCapital()
public static double getCapitalPrice()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |