/** * Adds the given amount of down-regulation capacity. * Amount must be non-positive. */ public void addDownRegulation (double amount) { if (amount > 0.0) { log.warn("Attempt to add positive down-regulation capacity " + amount); return; } setDownRegulationCapacity(downRegulationCapacity + amount); }
/** * Adds the capacities in the given RegulationAccumulator instance to this * instance. */ public void add (RegulationAccumulator rc) { setUpRegulationCapacity(upRegulationCapacity + rc.upRegulationCapacity); setDownRegulationCapacity(downRegulationCapacity + rc.downRegulationCapacity); }
regulationAccumulator.setDownRegulationCapacity(0.0); regulationAccumulator.setUpRegulationCapacity(0.0);
regulationAccumulator.setDownRegulationCapacity(regulationAccumulator .getDownRegulationCapacity() - kWhPerMember);
(-pendingRegulationRatio) regulationAccumulator.setDownRegulationCapacity(regulationAccumulator .getDownRegulationCapacity() - result);