|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.Orderbook
public class Orderbook
An orderbook instance captures a snapshot of the PowerTAC wholesale market's orderbook (the un-cleared bids and asks remaining after the market is cleared). Each OrderbookEntry contained in the orderbook contains a limit price and total un-cleared buy / sell quantity im mWh at that price. Each time the market clears, one orderbook is created and sent to brokers for each timeslot being traded during that clearing event.
| Constructor Summary | |
|---|---|
Orderbook(int timeslot,
Double clearingPrice,
org.joda.time.Instant dateExecuted)
Constructor with default product type. |
|
Orderbook(Timeslot timeslot,
Double clearingPrice,
org.joda.time.Instant dateExecuted)
|
|
| Method Summary | |
|---|---|
Orderbook |
addAsk(OrderbookOrder ask)
|
Orderbook |
addBid(OrderbookOrder bid)
|
SortedSet<OrderbookOrder> |
getAsks()
The set of asks (negative energy quantities) that were submitted and did not clear, ascending sort. |
SortedSet<OrderbookOrder> |
getBids()
The set of bids (positive energy quantities) that were submitted and did not clear, ascending sort. |
Double |
getClearingPrice()
Returns the positive price at which the market cleared. |
org.joda.time.Instant |
getDateExecuted()
The date when the market cleared. |
long |
getId()
|
Timeslot |
getTimeslot()
|
int |
getTimeslotIndex()
The timeslot in which energy commitments represented by cleared trades are due. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Orderbook(int timeslot,
Double clearingPrice,
org.joda.time.Instant dateExecuted)
public Orderbook(Timeslot timeslot,
Double clearingPrice,
org.joda.time.Instant dateExecuted)
| Method Detail |
|---|
public long getId()
public Double getClearingPrice()
public org.joda.time.Instant getDateExecuted()
public int getTimeslotIndex()
public Timeslot getTimeslot()
public SortedSet<OrderbookOrder> getBids()
public Orderbook addBid(OrderbookOrder bid)
public SortedSet<OrderbookOrder> getAsks()
public Orderbook addAsk(OrderbookOrder ask)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||