Package org.powertac.visualizer.domain
Class RetailKPIHolder
- java.lang.Object
-
- org.powertac.visualizer.domain.RetailKPIHolder
-
public class RetailKPIHolder extends Object
Keeps track of customer status and usage. Usage is stored per-customer-unit, but reported as the product of the per-customer quantity and the subscribed population. This allows the broker to use historical usage data as the subscribed population shifts.- Author:
- Jurica Babic, Govert Buijs, Erik Kemperman
-
-
Constructor Summary
Constructors Constructor Description RetailKPIHolder()
RetailKPIHolder(RetailKPIHolder retailKPIHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActiveTariffs()
double
getKwh()
Double
getMoney()
int
getPublishedTariffs()
int
getRevokedTariffs()
int
getSubscribedPopulation()
void
incrementPublishedTariffs()
void
incrementRevokedTariffs()
boolean
isEmpty()
void
produceConsume(double txKwh, double txMoney)
void
resetCurrentValues()
void
setActiveTariffs(int activeTariffs)
void
setKwh(double kwh)
void
setMoney(double money)
void
setPublishedTariffs(int publishedTariffs)
void
setRevokedTariffs(int revokedTariffs)
void
setSubscribedPopulation(int population)
void
signup(int population)
String
toString()
void
withdraw(int population)
-
-
-
Constructor Detail
-
RetailKPIHolder
public RetailKPIHolder()
-
RetailKPIHolder
public RetailKPIHolder(RetailKPIHolder retailKPIHolder)
-
-
Method Detail
-
resetCurrentValues
public void resetCurrentValues()
-
signup
public void signup(int population)
-
withdraw
public void withdraw(int population)
-
produceConsume
public void produceConsume(double txKwh, double txMoney)
-
incrementRevokedTariffs
public void incrementRevokedTariffs()
-
incrementPublishedTariffs
public void incrementPublishedTariffs()
-
getSubscribedPopulation
public int getSubscribedPopulation()
-
setSubscribedPopulation
public void setSubscribedPopulation(int population)
-
getKwh
public double getKwh()
-
setKwh
public void setKwh(double kwh)
-
getMoney
public Double getMoney()
-
setMoney
public void setMoney(double money)
-
getActiveTariffs
public int getActiveTariffs()
-
setActiveTariffs
public void setActiveTariffs(int activeTariffs)
-
getRevokedTariffs
public int getRevokedTariffs()
-
setRevokedTariffs
public void setRevokedTariffs(int revokedTariffs)
-
getPublishedTariffs
public int getPublishedTariffs()
-
setPublishedTariffs
public void setPublishedTariffs(int publishedTariffs)
-
isEmpty
public boolean isEmpty()
-
-