AspectScorePoint first_late = new AspectScorePoint(AspectValue.newAspectValue(aspectType, bestDay + thePG.getBucketMillis()), alpha);
AspectScorePoint first_late = new AspectScorePoint(AspectValue.newAspectValue(aspectType,late), alpha);
  protected Preference createRefillTimePreference(long bestDay, long start,                                                 int aspectType, LogisticsInventoryPG thePG) {    //TODO - really need last day in theatre from an OrgActivity -    long end = inventoryPlugin.getOPlanEndTime();    double daysBetween = ((end - bestDay)  / thePG.getBucketMillis()) - 1;    //Use .0033 as a slope for now    double late_score = .0033 * daysBetween;    // define alpha .25    double alpha = .25;    Vector points = new Vector();    AspectScorePoint earliest = new AspectScorePoint(AspectValue.newAspectValue(aspectType, start), alpha);    AspectScorePoint best = new AspectScorePoint(AspectValue.newAspectValue(aspectType, bestDay), 0.0);//     AspectScorePoint first_late = new AspectScorePoint(getTimeUtils().addNDays(bestDay, 1), //                                                        alpha, aspectType);    AspectScorePoint first_late = new AspectScorePoint(AspectValue.newAspectValue(aspectType,                                                                                   bestDay + thePG.getBucketMillis()),                                                        alpha);    AspectScorePoint latest = new AspectScorePoint(AspectValue.newAspectValue(aspectType, end),                                                    (alpha + late_score));    points.addElement(earliest);    points.addElement(best);    points.addElement(first_late);    points.addElement(latest);    ScoringFunction timeSF = ScoringFunction.      createPiecewiseLinearScoringFunction(points.elements());    return inventoryPlugin.getPlanningFactory().      newPreference(aspectType, timeSF);  }