added first Package Diagram
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / dataschema / Reservation.java
CommitLineData
9a78ca13
MT
1/*\r
2 * Copyright (c) 2015 Berner Fachhochschule, Switzerland.\r
3 *\r
4 * Project Smart Reservation System.\r
5 *\r
6 * Distributable under GPL license. See terms of license at gnu.org.\r
7 */\r
8package ch.bfh.ti.srs.dataschema;\r
9\r
10import ch.bfh.ti.daterange.DateRange;\r
11\r
12public class Reservation {\r
13\r
14 private String name;\r
15 private User user;\r
16 private Resource resource;\r
17 private DateRange dateRange;\r
18\r
19 public Reservation(String name, User user, Resource resource, DateRange DateRange) {\r
20 this.name = name;\r
21 this.user = user;\r
22 this.resource = resource;\r
23 this.dateRange = DateRange;\r
24 }\r
25\r
26 public String getName() {\r
27 return name;\r
28 }\r
29\r
30 public User getUser() {\r
31 return user;\r
32 }\r
33\r
34 public Resource getResource() {\r
35 return resource;\r
36 }\r
37\r
38 public DateRange getDateRange() {\r
39 return dateRange;\r
40 }\r
41\r
42 public void setName(String name) {\r
43 this.name = name;\r
44 }\r
45\r
46 public void setUser(User user) {\r
47 this.user = user;\r
48 }\r
49\r
50 public void setResource(Resource resource) {\r
51 this.resource = resource;\r
52 }\r
53\r
54 public void setDateRange(DateRange dateRange) {\r
55 this.dateRange = dateRange;\r
56 }\r
57}\r