|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Market
An order-driven market exchange.
![]() |
![]() |
Method Summary | |
---|---|
void |
clear(Order ask,
Order bid,
double price)
Handle a single clearing operation between two traders for a single unit. |
void |
clear(Order ask,
Order bid,
double buyerCharge,
double sellerPayment,
int quantity)
Handle a single clearing operation between two traders specifying the prices paid by each party and the volume of the trade. |
void |
close()
Close the market. |
boolean |
closed()
Returns true if the market is closed. |
int |
getAge()
|
Auctioneer |
getAuctioneer()
Return the current auctioneer for this market. |
double |
getCurrentPrice()
Return the current price. |
int |
getDay()
|
Order |
getLastOrder()
Return the most recent order placed in the market. |
double |
getLastTransactionPrice()
Return the price of the most transaction that occurred in the market. |
int |
getNumberOfTraders()
Get the number of traders known to be trading in the market. |
Population |
getPopulation()
|
int |
getRemainingTime()
Get the remaining time in the current trading day (period). |
int |
getRound()
Get the age of the market in unspecified units |
java.util.Iterator<Agent> |
getTraderIterator()
|
boolean |
orderAccepted(Order shout)
Find out whether the given shout has resulted in a transaction in the current round of trading. |
void |
placeOrder(Order shout)
Place a new order in the market. |
void |
printState()
Report the state of the market. |
void |
remove(AbstractTradingAgent abstractTradingAgent)
|
void |
removeOrder(Order shout)
Remove an order from the market. |
boolean |
transactionsOccurred()
Determine whether or not any transactions have occurred in the current round of trading. |
Methods inherited from interface net.sourceforge.jasa.market.QuoteProvider |
---|
getQuote |
Method Detail |
---|
boolean closed()
void close()
void placeOrder(Order shout) throws AuctionException
AuctionException
void removeOrder(Order shout)
Order getLastOrder() throws ShoutsNotVisibleException
ShoutsNotVisibleException
Auctioneer getAuctioneer()
void printState()
void clear(Order ask, Order bid, double price)
void clear(Order ask, Order bid, double buyerCharge, double sellerPayment, int quantity)
int getRound()
int getDay()
int getAge()
int getRemainingTime()
int getNumberOfTraders()
boolean orderAccepted(Order shout) throws ShoutsNotVisibleException
ShoutsNotVisibleException
boolean transactionsOccurred() throws ShoutsNotVisibleException
ShoutsNotVisibleException
double getLastTransactionPrice()
double getCurrentPrice()
java.util.Iterator<Agent> getTraderIterator()
void remove(AbstractTradingAgent abstractTradingAgent)
Population getPopulation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |