public class VisualizerOrderbook extends Object
| Constructor and Description |
|---|
VisualizerOrderbook(org.powertac.common.Orderbook orderbook)
Constructor for creating an object from the original Orderbook.
|
VisualizerOrderbook(org.powertac.common.Timeslot timeslot,
Double clearingPrice,
org.joda.time.Instant dateExecuted)
Constructor with default product type.
|
| Modifier and Type | Method and Description |
|---|---|
VisualizerOrderbook |
addAsk(VisualizerOrderbookOrder ask) |
VisualizerOrderbook |
addBid(VisualizerOrderbookOrder bid) |
SortedSet<VisualizerOrderbookOrder> |
getAsks()
The set of asks (negative energy quantities) that were submitted and did
not clear, ascending sort.
|
SortedSet<VisualizerOrderbookOrder> |
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.
|
org.powertac.common.Timeslot |
getTimeslot()
The timeslot in which energy commitments represented by cleared trades
are due.
|
public VisualizerOrderbook(org.powertac.common.Timeslot timeslot,
Double clearingPrice,
org.joda.time.Instant dateExecuted)
public VisualizerOrderbook(org.powertac.common.Orderbook orderbook)
public Double getClearingPrice()
public org.joda.time.Instant getDateExecuted()
public org.powertac.common.Timeslot getTimeslot()
public SortedSet<VisualizerOrderbookOrder> getBids()
public VisualizerOrderbook addBid(VisualizerOrderbookOrder bid)
public SortedSet<VisualizerOrderbookOrder> getAsks()
public VisualizerOrderbook addAsk(VisualizerOrderbookOrder ask)
Copyright © 2015 Power TAC. All Rights Reserved.