org.powertac.visualizer.domain.broker
Class TariffInfo
java.lang.Object
org.powertac.visualizer.domain.broker.TariffInfo
- All Implemented Interfaces:
- TimeslotModelUpdate
public class TariffInfo
- extends Object
- implements TimeslotModelUpdate
TariffInfo tracks a tariff offered by a broker to customers.
- Author:
- Jurica Babic
|
Constructor Summary |
TariffInfo(org.powertac.common.TariffSpecification tariffSpecification)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TariffInfo
public TariffInfo(org.powertac.common.TariffSpecification tariffSpecification)
addTariffMessage
public void addTariffMessage(String msg)
addTariffTransaction
public void addTariffTransaction(org.powertac.common.TariffTransaction tx)
update
public void update(int timeslotIndex,
org.joda.time.Instant postedTime)
- Specified by:
update in interface TimeslotModelUpdate
- Parameters:
timeslotIndex - update will be run for this timeslot index.
getLog
public org.apache.log4j.Logger getLog()
getTariffSpecification
public org.powertac.common.TariffSpecification getTariffSpecification()
getTariffTransactions
public ArrayList<org.powertac.common.TariffTransaction> getTariffTransactions()
getTariffLifecycle
public ArrayList<String> getTariffLifecycle()
getRateInfos
public ArrayList<RateInfo> getRateInfos()
getJson
public TariffInfoJSON getJson()
getSubscribedPopulation
public int getSubscribedPopulation()
getTotalRevenue
public double getTotalRevenue()
getHourlyRevenue
public double getHourlyRevenue()
getTotalKWh
public double getTotalKWh()
getHourlyKWh
public double getHourlyKWh()
Copyright © 2012 Power TAC. All Rights Reserved.