Package org.powertac.common
Class ClearedTrade
- java.lang.Object
 - 
- org.powertac.common.ClearedTrade
 
 
- 
@Domain(fields={"timeslot","executionMWh","executionPrice","dateExecuted"}) 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
Constructors Constructor Description ClearedTrade(int timeslot, double executionMWh, double executionPrice, org.joda.time.Instant dateExecuted)ClearedTrade(Timeslot timeslot, double executionMWh, double executionPrice, org.joda.time.Instant dateExecuted) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.joda.time.InstantgetDateExecuted()doublegetExecutionMWh()doublegetExecutionPrice()longgetId()TimeslotgetTimeslot()intgetTimeslotIndex()StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
ClearedTrade
public ClearedTrade(int timeslot, double executionMWh, double executionPrice, org.joda.time.Instant dateExecuted) 
- 
ClearedTrade
@ChainedConstructor public ClearedTrade(Timeslot timeslot, double executionMWh, double executionPrice, org.joda.time.Instant dateExecuted)
 
 - 
 
- 
Method Detail
- 
getId
public long getId()
 
- 
getTimeslotIndex
public int getTimeslotIndex()
 
- 
getTimeslot
public Timeslot getTimeslot()
 
- 
getExecutionPrice
public double getExecutionPrice()
 
- 
getExecutionMWh
public double getExecutionMWh()
 
- 
getDateExecuted
public org.joda.time.Instant getDateExecuted()
 
 - 
 
 -