game
Class GodeSunderDoubleAuction

java.lang.Object
  extended by game.DiscreteGame
      extended by game.DoubleAuction
          extended by game.GodeSunderDoubleAuction

public class GodeSunderDoubleAuction
extends DoubleAuction

An implementation of a double auction as according to the zero-intellegence trader paper by Gode and Sunder

Author:
tratch

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

GodeSunderDoubleAuction

public GodeSunderDoubleAuction(Market market,
                               int length)
Parameters:
market -
length -
Method Detail

run

public void run()
Sets the market price limit to 200 and only allows for trades of 1 unit.

Overrides:
run in class DoubleAuction
See Also:
DoubleAuction.run()

step

public void step()
Clears all participants inventories and endows them with the specified good of the auction

Overrides:
step in class DoubleAuction
See Also:
DoubleAuction.step()