Class DistributionReport


  • @Domain(fields={"timeslot","totalConsumption","totalProduction"})
    public class DistributionReport
    extends XStreamStateLoggable
    Reports total consumption and total production in kwh across all customers in a given timeslot. These are absolute (positive) values.
    Author:
    John Collins
    • Field Detail

      • id

        @XStreamAsAttribute
        protected long id
    • Constructor Detail

      • DistributionReport

        public DistributionReport()
        Dummy constructor.
      • DistributionReport

        public DistributionReport​(int timeslot,
                                  double consumption,
                                  double production)
    • Method Detail

      • getId

        public long getId()
      • getTimeslot

        public int getTimeslot()
      • getTotalConsumption

        public double getTotalConsumption()
      • getTotalProduction

        public double getTotalProduction()