/** * Update the slot of the ResourceAllocation based on the current time and the * values of the ActionDescription. * To generate the slot the method {@link #getAllocationInterval(ActionDescription.Builder) getAllocationInterval} is used. * * @param actionDescription the ActionDescription inside which the ResourceAllocation is updated * @return the updated ActionDescription */ public static ActionDescription.Builder updateResourceAllocationSlot(final ActionDescription.Builder actionDescription) { final ResourceAllocation.Builder resourceAllocationBuilder = actionDescription.getResourceAllocationBuilder(); resourceAllocationBuilder.setSlot(getAllocationInterval(actionDescription)); return actionDescription; }