|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.visualizer.domain.wholesale.VisualizerOrderbook
public class VisualizerOrderbook
This is a convenient class for wholesale visualization. It is a copy of Orderbook class. Purpose of this class is to avoid unnecessary entries created by original Orderbook for Power TAC server STATE log.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VisualizerOrderbook(org.powertac.common.Timeslot timeslot,
Double clearingPrice,
org.joda.time.Instant dateExecuted)
public VisualizerOrderbook(org.powertac.common.Orderbook orderbook)
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||