org.powertac.visualizer.domain.broker
Class TariffInfo

java.lang.Object
  extended by 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)
           
 
Method Summary
 void addTariffMessage(String msg)
           
 void addTariffTransaction(org.powertac.common.TariffTransaction tx)
           
 double getHourlyKWh()
           
 double getHourlyRevenue()
           
 TariffInfoJSON getJson()
           
 org.apache.log4j.Logger getLog()
           
 ArrayList<RateInfo> getRateInfos()
           
 int getSubscribedPopulation()
           
 ArrayList<String> getTariffLifecycle()
           
 org.powertac.common.TariffSpecification getTariffSpecification()
           
 ArrayList<org.powertac.common.TariffTransaction> getTariffTransactions()
           
 double getTotalKWh()
           
 double getTotalRevenue()
           
 void update(int timeslotIndex, org.joda.time.Instant postedTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TariffInfo

public TariffInfo(org.powertac.common.TariffSpecification tariffSpecification)
Method Detail

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.