durationMap.put(index, dashletSpecs.get(index).getDuration() + dashletSpecs.get(index).getBoostDuration()); } else { priorityMap.put(index, dashletSpecs.get(index).getPriority()); durationMap.put(index, dashletSpecs.get(index).getDuration() + dashletSpecs.get(index).getBoostDuration()); } else { priorityMap.put(index, Math.min(oldPriorityMap.get(index) + PRIORITY_DECREASE, dashletSpecs.get(index).getPriority()));
@Override public DashletSpec clone() { DashletSpec dashletSpec = new DashletSpec(); dashletSpec.setPriority(getPriority()); dashletSpec.setDuration(getDuration()); dashletSpec.setBoostPriority(getBoostPriority()); dashletSpec.setBoostDuration(getBoostDuration()); dashletSpec.setDashletName(getDashletName()); return dashletSpec; } }
boostDurationField.setValue(String.valueOf(dashletSpec.getBoostDuration())); boostDurationField.setImmediate(true); boostDurationField.setCaption("Boost-Duration");