|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The interface used by agents to interact with an auction.
AuctionImpl| Method Summary | |
void |
clear(Shout ask,
Shout bid,
double price)
Handle a single clearing operation between two traders |
void |
close()
Close the auction. |
boolean |
closed()
Returns true if the auction is closed. |
Auctioneer |
getAuctioneer()
Return the current auctioneer for this auction. |
int |
getDay()
|
Shout |
getLastShout()
Return the last shout placed in the auction. |
int |
getNumberOfTraders()
Get the number of traders known to be trading in the auction. |
int |
getRemainingTime()
Get the remaining time in the current trading day (period). |
AuctionReport |
getReport(java.lang.Class reportClass)
|
int |
getRound()
Get the age of the auction in unspecified units |
void |
newShout(Shout shout)
Place a new shout in the auction. |
void |
printState()
Report the state of the auction. |
void |
removeShout(Shout shout)
Remove a shout from the auction. |
boolean |
shoutAccepted(Shout shout)
Find out whether the given shout has resulted in a transaction in the current round of trading. |
boolean |
transactionsOccured()
Determine whether or not any transactions have occured in the current round of trading. |
| Methods inherited from interface uk.ac.liv.auction.core.QuoteProvider |
getQuote |
| Method Detail |
public boolean closed()
public void close()
public void newShout(Shout shout)
throws AuctionException
AuctionExceptionpublic void removeShout(Shout shout)
public Shout getLastShout()
throws ShoutsNotVisibleException
ShoutsNotVisibleExceptionpublic Auctioneer getAuctioneer()
public void printState()
public void clear(Shout ask,
Shout bid,
double price)
public int getRound()
public int getDay()
public int getRemainingTime()
public int getNumberOfTraders()
public boolean shoutAccepted(Shout shout)
throws ShoutsNotVisibleException
ShoutsNotVisibleException
public boolean transactionsOccured()
throws ShoutsNotVisibleException
ShoutsNotVisibleExceptionpublic AuctionReport getReport(java.lang.Class reportClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||