Class CapacityAccumulator


  • public class CapacityAccumulator
    extends Object
    Communicates and accumulates capacity information, including production, consumption, up-regulation, and down-regulation. Intended to be used by CapacityOriginator instances to return values to UtilityOptimizers.
    Author:
    John Collins
    • Constructor Detail

      • CapacityAccumulator

        public CapacityAccumulator()
        Creates an empty one
      • CapacityAccumulator

        public CapacityAccumulator​(double capacity,
                                   double upRegCap,
                                   double downRegCap)
        Creates an instance with specific values
    • Method Detail

      • scale

        public void scale​(double ratio)
        Scales values by ratio. Used to adjust for subscription ratios.
      • getCapacity

        public double getCapacity()
      • getUpRegulationCapacity

        public double getUpRegulationCapacity()
      • getDownRegulationCapacity

        public double getDownRegulationCapacity()