GLMDebug.ERROR("InventoryBG", "clearInventoryLevelSchedule(),  CREATED BAD nDays SCHEDULE  ");
if (logger.isErrorEnabled()) { logger.error("clearInventoryLevelSchedule(),  CREATED BAD nDays SCHEDULE  "); }
  public int clearInventoryLevelsSchedule(Inventory inventory) {    if (!isStartTimeSet) return -1;    InventoryLevelsPG ilp = inventory.getInventoryLevelsPG();    QuantityScheduleElement dse,rlse,glse;    Vector new_av_demand_elements = new Vector();    Vector new_reorder_elements = new Vector();    Vector new_goal_elements = new Vector();    long start = TimeUtils.addNDaysTime(getStartTime(), 0);    long end = TimeUtils.addNDaysTime(getStartTime(), 30);	    dse = ScheduleUtils.buildQuantityScheduleElement(0, start, end);    rlse = ScheduleUtils.buildQuantityScheduleElement(0, start, end);    glse = ScheduleUtils.buildQuantityScheduleElement(0, start, end);    new_av_demand_elements.add(dse);    new_reorder_elements.add(rlse);    new_goal_elements.add(glse);    Schedule new_av_demand_schedule =       GLMFactory.newQuantitySchedule(new_av_demand_elements.elements(), 				     PlanScheduleType.TOTAL_INVENTORY);    Schedule new_reorder_schedule =       GLMFactory.newQuantitySchedule(new_reorder_elements.elements(), 				     PlanScheduleType.TOTAL_INVENTORY);    Schedule new_goal_schedule =       GLMFactory.newQuantitySchedule(new_goal_elements.elements(), 				     PlanScheduleType.TOTAL_INVENTORY);    if (ScheduleUtils.isOffendingSchedule(new_av_demand_schedule)) {      GLMDebug.ERROR("InventoryBG", "clearInventoryLevelSchedule(),  CREATED BAD nDays SCHEDULE  ");      printQuantityScheduleTimes(new_av_demand_schedule);    }    if (ScheduleUtils.isOffendingSchedule(new_reorder_schedule)) {      GLMDebug.ERROR("InventoryBG", "clearInventoryLevelSchedule(),  CREATED BAD reorder SCHEDULE  ");      printQuantityScheduleTimes(new_reorder_schedule);    }    if (ScheduleUtils.isOffendingSchedule(new_goal_schedule)) {      GLMDebug.ERROR("InventoryBG", "clearInventoryLevelSchedule(),  CREATED BAD goal SCHEDULE  ");      printQuantityScheduleTimes(new_goal_schedule);    }    ((NewInventoryLevelsPG)ilp).setAverageDemandSchedule(new_av_demand_schedule);    ((NewInventoryLevelsPG)ilp).setReorderLevelSchedule(new_reorder_schedule);    ((NewInventoryLevelsPG)ilp).setGoalLevelSchedule(new_goal_schedule);    return 0;   }