org.powertac.visualizer.statistical
Class WholesaleCategory

java.lang.Object
  extended by org.powertac.visualizer.statistical.AbstractPerformanceCategory
      extended by 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).


Constructor Summary
WholesaleCategory(BrokerModel broker)
           
 
Method Summary
 void addCostFromBuying(double cost)
           
 void addEnergyBought(double energy)
           
 void addEnergySold(double energy)
           
 void addRevenueFromSelling(double revenue)
           
 ConcurrentHashMap<Integer,List<org.powertac.common.MarketTransaction>> getMarketTxs()
           
 ConcurrentHashMap<Integer,List<org.powertac.common.Order>> getOrders()
           
 double getTotalCostFromBuying()
           
 double getTotalEnergyBought()
           
 double getTotalEnergySold()
           
 double getTotalRevenueFromSelling()
           
 void update(int tsIndex, double energy, double cash)
           
 void updateAccounts(int tsIndex)
           
 
Methods inherited from class org.powertac.visualizer.statistical.AbstractPerformanceCategory
getBroker, getDynamicDataMap, getEnergy, getGrade, getLastDynamicData, getProfit, setGrade, setLastDynamicData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WholesaleCategory

public WholesaleCategory(BrokerModel broker)
Method Detail

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.