|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
double |
getAvgPrice()
Return average price of sell offers posted |
double |
getLastMktGoodVol()
Return volume of capital good traded |
Methods inherited from class eos.market.Market |
---|
getGood |
Methods inherited from class 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 getAvgPrice()
public double getLastMktGoodVol()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |