|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.repo.OrderbookRepo
@Repository public class OrderbookRepo
Repository for Orderbooks. Orderbooks are created with makeOrderbook(). Query methods include findByTimeslot().
| Constructor Summary | |
|---|---|
OrderbookRepo()
Standard constructor |
|
| Method Summary | |
|---|---|
List<Orderbook> |
findAllByTimeslot(Timeslot timeslot)
|
Orderbook |
findByTimeslot(Timeslot timeslot)
Returns the most recent Orderbook that has been created for the specified timeslot. |
Orderbook |
findSpotByTimeslot(Timeslot timeslot)
Returns the most recent orderbook with a non-null clearing price. |
Double[] |
getMaxAskPrices()
Returns maxAskPrices array, representing the maximum ask prices for the most recent clearing of the wholesale market. |
Double[] |
getMinAskPrices()
Returns the minAskPrices array, representing the minimum ask prices for the most recent clearing of the wholesale market. |
Orderbook |
makeOrderbook(Timeslot timeslot,
Double clearingPrice)
Creates a new Orderbook, with standard defaults (productType = Future, dateExecuted = now). |
void |
recycle()
Clears the index in preparation for a new simulation |
void |
setMaxAskPrices(Double[] values)
|
void |
setMinAskPrices(Double[] values)
Set the minAskPrices array. |
int |
size()
Returns the count of instances in this repo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderbookRepo()
| Method Detail |
|---|
public Orderbook makeOrderbook(Timeslot timeslot,
Double clearingPrice)
public Orderbook findByTimeslot(Timeslot timeslot)
public Orderbook findSpotByTimeslot(Timeslot timeslot)
public List<Orderbook> findAllByTimeslot(Timeslot timeslot)
public void setMinAskPrices(Double[] values)
public void setMaxAskPrices(Double[] values)
values - public Double[] getMinAskPrices()
public Double[] getMaxAskPrices()
public int size()
public void recycle()
recycle in interface DomainRepo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||