@Domain public class Orderbook extends Object
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
public Orderbook(int timeslot, Double clearingPrice, org.joda.time.Instant dateExecuted)
@ChainedConstructor public Orderbook(Timeslot timeslot, Double clearingPrice, org.joda.time.Instant dateExecuted)
public long getId()
public Double getClearingPrice()
public org.joda.time.Instant getDateExecuted()
public int getTimeslotIndex()
public Timeslot getTimeslot()
public SortedSet<OrderbookOrder> getBids()
@StateChange public Orderbook addBid(OrderbookOrder bid)
public SortedSet<OrderbookOrder> getAsks()
@StateChange public Orderbook addAsk(OrderbookOrder ask)
Copyright © 2019 Power TAC. All rights reserved.