Package org.powertac.common
Class OrderbookOrder
- java.lang.Object
 - 
- org.powertac.common.OrderbookOrder
 
 
- 
- All Implemented Interfaces:
 Comparable<Object>
@Domain(fields={"mWh","limitPrice"}) public class OrderbookOrder extends Object implements Comparable<Object>
Each instance is an individual un-cleared entry (a Bid or an Ask) within an Orderbook.- Author:
 - Daniel Schnurr
 
 
- 
- 
Constructor Summary
Constructors Constructor Description OrderbookOrder(double mWh, Double limitPrice) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)longgetId()DoublegetLimitPrice()Returns the limit price for this unsatisfied order.doublegetMWh()Returns the quantity of energy unsatisfied for an order.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
OrderbookOrder
public OrderbookOrder(double mWh, Double limitPrice) 
 - 
 
- 
Method Detail
- 
getId
public long getId()
 
- 
compareTo
public int compareTo(Object o)
- Specified by:
 compareToin interfaceComparable<Object>
 
- 
getLimitPrice
public Double getLimitPrice()
Returns the limit price for this unsatisfied order. Normally this will have a sign opposite to the mWh energy quantity. 
- 
getMWh
public double getMWh()
Returns the quantity of energy unsatisfied for an order. This will positive for a bid, negative for an ask. 
 - 
 
 -