org.powertac.visualizer.statistical
Class WholesaleCategory
java.lang.Object
org.powertac.visualizer.statistical.AbstractPerformanceCategory
org.powertac.visualizer.statistical.WholesaleCategory
public class WholesaleCategory
- extends AbstractPerformanceCategory
Holds broker's transactions made in current timeslot for available future
timeslots (24 of them).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WholesaleCategory
public WholesaleCategory(BrokerModel broker)
getMarketTxs
public ConcurrentHashMap<Integer,List<org.powertac.common.MarketTransaction>> getMarketTxs()
getOrders
public ConcurrentHashMap<Integer,List<org.powertac.common.Order>> getOrders()
update
public void update(int tsIndex,
double energy,
double cash)
- Overrides:
update in class AbstractPerformanceCategory
updateAccounts
public void updateAccounts(int tsIndex)
getTotalEnergyBought
public double getTotalEnergyBought()
addEnergyBought
public void addEnergyBought(double energy)
getTotalEnergySold
public double getTotalEnergySold()
addEnergySold
public void addEnergySold(double energy)
getTotalCostFromBuying
public double getTotalCostFromBuying()
addCostFromBuying
public void addCostFromBuying(double cost)
getTotalRevenueFromSelling
public double getTotalRevenueFromSelling()
addRevenueFromSelling
public void addRevenueFromSelling(double revenue)
Copyright © 2013 Power TAC. All Rights Reserved.