org.powertac.visualizer.domain.wholesale
Class VisualizerOrderbookOrder
java.lang.Object
org.powertac.visualizer.domain.wholesale.VisualizerOrderbookOrder
- All Implemented Interfaces:
- Comparable<Object>
public class VisualizerOrderbookOrder
- extends Object
- implements Comparable<Object>
This is a convenient class for wholesale visualization. It is a copy of OrderbookOrder class. Purpose of this class is to avoid unnecessary entries created by original OrderbookOrder for Power TAC server STATE log.
- Author:
- Jurica Babic
VisualizerOrderbookOrder
public VisualizerOrderbookOrder(double mWh,
Double limitPrice)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo in interface Comparable<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.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 Power TAC. All Rights Reserved.