package test.rewolucja.reservation; import schedframe.resources.ResourceDescription; import schedframe.scheduling.TimeResourceAllocation; import test.rewolucja.reservation.ReservationNew.Status; public class GssimReservationListNew extends ReservationListNew { private static final long serialVersionUID = 2885849696523227724L; public ReservationNew add(TimeResourceAllocation resourceUsage, Status status){ ResourceDescription resDesc = resourceUsage.getAllocatedResource(); ReservationNew reservation = new GssimReservationNew(resDesc, resourceUsage.getStart(), resourceUsage.getEnd()); reservation.setResourceName(resDesc.getProvider().getProviderId()); reservation.setStatus(status); super.add(reservation); return new ReservationNew(reservation); } }