org.powertac.common
Class ClearedTrade

java.lang.Object
  extended by org.powertac.common.ClearedTrade

public class ClearedTrade
extends Object

A ClearedTrade instance reports public information about a specific market clearing -- clearing price and total quantity traded. Each time the market is cleared, a ClearedTrade is generated at least for each timeslot in which a non-zero quantity was traded.

Author:
Daniel Schnurr, John Collins

Constructor Summary
ClearedTrade(Timeslot timeslot, double executionMWh, double executionPrice, org.joda.time.Instant dateExecuted)
           
 
Method Summary
 org.joda.time.Instant getDateExecuted()
           
 double getExecutionMWh()
           
 double getExecutionPrice()
           
 long getId()
           
 Timeslot getTimeslot()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClearedTrade

public ClearedTrade(Timeslot timeslot,
                    double executionMWh,
                    double executionPrice,
                    org.joda.time.Instant dateExecuted)
Method Detail

getId

public long getId()

getTimeslot

public Timeslot getTimeslot()

getExecutionPrice

public double getExecutionPrice()

getExecutionMWh

public double getExecutionMWh()

getDateExecuted

public org.joda.time.Instant getDateExecuted()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.