Revision 104,
816 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package test.rewolucja.reservation; |
---|
2 | |
---|
3 | import schedframe.resources.ResourceDescription; |
---|
4 | import schedframe.scheduling.TimeResourceAllocation; |
---|
5 | import test.rewolucja.reservation.ReservationNew.Status; |
---|
6 | |
---|
7 | |
---|
8 | public 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.