printDebug("updateInventoryPolicy(), Days On Hand Policy CHANGED for "+supplyType_+". DaysOnHand: "+daysOnHand_+ ", Days Forward: "+daysForward_+", Days Backward: "+daysBackward_+", Window size: "+ (daysForward_+daysBackward_)+", goal level multiplier: "+goalLevelMultiplier_); }
if (logger.isDebugEnabled()) { logger.debug("updateInventoryPolicy(), Days On Hand Policy CHANGED for " + supplyType_ + ". DaysOnHand: " + daysOnHand_ + ", Days Forward: " + daysForward_ + ", Days Backward: " + daysBackward_ + ", Window size: " + (daysForward_ + daysBackward_) + ", goal level multiplier: " + goalLevelMultiplier_); } }
  protected boolean updateInventoryPolicy(Enumeration policies) {    InventoryPolicy pol;    boolean changed = false;    //  	printDebug("updateInventoryPolicy(), Days On Hand Policy for "+supplyType_+". DaysOnHand: "+daysOnHand_+    //  		   ", Days Forward: "+daysForward_+", Days Backward: "+daysBackward_+", Window size: "+    //  		   (daysForward_+daysBackward_));    while (policies.hasMoreElements()) {      pol = (InventoryPolicy)policies.nextElement();      int days = pol.getDaysOnHand();      if ((days >= 0) && (days != daysOnHand_)) {	daysOnHand_ = days;	changed = true;      }      int forward = pol.getDaysForward();      if ((forward >= 0) && (forward != daysForward_)) {	daysForward_ = forward;	changed = true;      }      int backward = pol.getDaysBackward();      if ((backward >= 0) && (backward != daysBackward_)) {	daysBackward_ = backward;	checkDeletionPolicy(); // Changed daysBackward, need to change deletion policy	changed = true;      }      double multiplier = pol.getGoalLevelMultiplier();      if ((multiplier > 1.0) && (multiplier != goalLevelMultiplier_)) {	goalLevelMultiplier_ = multiplier;	changed = true;      }      if (pol.hasFillToCapacityRule()) {	inventoryPlugin_.setFillToCapacity(supplyType_, pol.getFillToCapacity());	changed = true;      }      if (pol.hasMaintainAtCapacityRule()) {	inventoryPlugin_.setMaintainAtCapacity(supplyType_, pol.getMaintainAtCapacity());	changed = true;      }      if (pol.hasSwitchoverRule()) {	ProjectionWeight newWeight =	  new ProjectionWeightImpl(pol.getWithdrawSwitchoverDay(),				   pol.getRefillSwitchoverDay(),				   pol.getTurnOffProjections());	inventoryPlugin_.setProjectionWeight(supplyType_, newWeight);	changed = true;      }    }    if (changed) {      printDebug("updateInventoryPolicy(), Days On Hand Policy CHANGED for "+supplyType_+". DaysOnHand: "+daysOnHand_+		 ", Days Forward: "+daysForward_+", Days Backward: "+daysBackward_+", Window size: "+		 (daysForward_+daysBackward_)+", goal level multiplier: "+goalLevelMultiplier_);    }		    return changed;  }