Class 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 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()