source: xssim/src/test/rewolucja/reservation/GssimReservationListNew.java @ 104

Revision 104, 816 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package test.rewolucja.reservation;
2
3import schedframe.resources.ResourceDescription;
4import schedframe.scheduling.TimeResourceAllocation;
5import test.rewolucja.reservation.ReservationNew.Status;
6
7
8public class GssimReservationListNew extends ReservationListNew {
9
10        private static final long serialVersionUID = 2885849696523227724L;
11       
12        public ReservationNew add(TimeResourceAllocation resourceUsage, Status status){
13                ResourceDescription resDesc = resourceUsage.getAllocatedResource();
14                ReservationNew reservation = new GssimReservationNew(resDesc,
15                                                                                                resourceUsage.getStart(),
16                                                                                                resourceUsage.getEnd());
17               
18                reservation.setResourceName(resDesc.getProvider().getProviderId());
19                reservation.setStatus(status);
20               
21                super.add(reservation);
22               
23                return new ReservationNew(reservation);
24               
25        }
26
27}
Note: See TracBrowser for help on using the repository browser.