if (regenerate_projected_demand) { regenerateProjectedDemandList(); regenerate_projected_demand = false;
if (regenerate_projected_demand) { regenerateProjectedDemandList(); regenerate_projected_demand = false; } if ((bucket >= projectedDemandArray.length) || (bucket < 0)) { return 0.0; }  return projectedDemandArray[bucket];
  public double getProjectedDemand(int bucket) {    if (regenerate_projected_demand) {      regenerateProjectedDemandList();      regenerate_projected_demand = false;    }    if ((bucket >= projectedDemandArray.length) ||	(bucket < 0)) {      return 0.0;    }    return projectedDemandArray[bucket];  }