|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgame.DiscreteGame
game.DoubleAuction
game.GodeSunderDoubleAuction
public class GodeSunderDoubleAuction
An implementation of a double auction as according to the zero-intellegence trader paper by Gode and Sunder
Constructor Summary | |
---|---|
GodeSunderDoubleAuction(Market market,
int length)
|
Method Summary | |
---|---|
void |
run()
Sets the market price limit to 200 and only allows for trades of 1 unit. |
void |
step()
Clears all participants inventories and endows them with the specified good of the auction |
Methods inherited from class game.DoubleAuction |
---|
clearAllParticipantsInventory, clearAllParticipantsOfCommodity, endowAllBuyers, endowAllParticipants, endowAllSellers, getMarket, getParticipants, isVerbose, setMarket, setParticipants, setRand, setVerbose |
Methods inherited from class game.DiscreteGame |
---|
getCurrentPeriod, getGameLength |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GodeSunderDoubleAuction(Market market, int length)
market
- length
- Method Detail |
---|
public void run()
run
in class DoubleAuction
DoubleAuction.run()
public void step()
step
in class DoubleAuction
DoubleAuction.step()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |