public class WholesaleMarket extends Object
| Constructor and Description |
|---|
WholesaleMarket(org.powertac.common.Timeslot timeslot,
Integer timeslotSerialNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Wholesale Market should be closed when all of its snapshots have been
closed and the current relative index is equal to market's relative
index.
|
WholesaleSnapshot |
findSnapshot(int timeslotSerialNumber)
Returns WholesaleSnapshot by given timeslot serial number.
|
double |
getAvgWeightPrice() |
WholesaleMarketJSON |
getJson() |
WholesaleSnapshot |
getLastWholesaleSnapshotWithClearing() |
String |
getName() |
ArrayList<WholesaleSnapshot> |
getSnapshots() |
Map<Integer,WholesaleSnapshot> |
getSnapshotsMap() |
org.powertac.common.Timeslot |
getTimeslot() |
int |
getTimeslotSerialNumber() |
String |
getTotalTradedQuantity() |
double |
getTotalTradedQuantityMWh() |
String |
getType() |
double |
getWeightSumTradedQuantityMWh() |
boolean |
isClosed() |
void |
setLastWholesaleSnapshotWithClearing(WholesaleSnapshot lastWholesaleSnapshotWithClearing) |
String |
toString() |
public WholesaleMarket(org.powertac.common.Timeslot timeslot,
Integer timeslotSerialNumber)
public int getTimeslotSerialNumber()
public WholesaleSnapshot findSnapshot(int timeslotSerialNumber)
timeslotSerialNumber - public Map<Integer,WholesaleSnapshot> getSnapshotsMap()
public double getTotalTradedQuantityMWh()
public double getAvgWeightPrice()
public double getWeightSumTradedQuantityMWh()
public boolean isClosed()
public void close()
public String getName()
public String getType()
public String getTotalTradedQuantity()
public ArrayList<WholesaleSnapshot> getSnapshots()
public org.powertac.common.Timeslot getTimeslot()
public WholesaleSnapshot getLastWholesaleSnapshotWithClearing()
public void setLastWholesaleSnapshotWithClearing(WholesaleSnapshot lastWholesaleSnapshotWithClearing)
public WholesaleMarketJSON getJson()
Copyright © 2015 Power TAC. All Rights Reserved.