TD3: Add code skeleton for the hostel reservations though RMI.
[TD_SR.git] / TD3 / hotel / Infos.java
CommitLineData
3a8c8f19
JB
1package hotel;\r
2\r
3import java.io.Serializable;\r
4\r
5\r
6/**\r
7 * Applications reparties\r
8 * TP - Exercice \r
9 * Chaine d'hotels\r
10 * \r
11 * Classe regroupant les informations d'une reservation\r
12 * \r
13 * @author Toto\r
14 * @version 1.0\r
15 */\r
16public class Infos implements Serializable {\r
17\r
18 private static final long serialVersionUID = -6199402168457446943L;\r
19\r
20 private String nomClient;\r
21 private String nomHotel;\r
22 private String date;\r
23 private int nbchambres;\r
24 \r
25 public Infos() {\r
26 this.nomClient = "";\r
27 this.nomHotel = "";\r
28 this.date = "";\r
29 this.nbchambres = 0;\r
30 }\r
31 \r
32 public Infos(String client, String hotel, String date, int nb) {\r
33 this.nomClient = client;\r
34 this.nomHotel = hotel;\r
35 this.date = date;\r
36 this.nbchambres = nb;\r
37 }\r
38 \r
39 public String getNomClient() {\r
40 return this.nomClient;\r
41 }\r
42 \r
43 public void setNomClient(String nom) {\r
44 this.nomClient = nom;\r
45 }\r
46 \r
47 public String getNomHotel() {\r
48 return this.nomHotel;\r
49 }\r
50 \r
51 public void setNomHotel(String nom) {\r
52 this.nomHotel = nom;\r
53 }\r
54 \r
55 public String getDate() {\r
56 return this.date;\r
57 }\r
58 \r
59 public void setDate(String d) {\r
60 this.date = d;\r
61 }\r
62 \r
63 public int getNbChambres() {\r
64 return this.nbchambres;\r
65 }\r
66 \r
67 public void setNbChambres(int nb) {\r
68 this.nbchambres = nb;\r
69 }\r
70 \r
71 public String toString() {\r
72 String str = "";\r
73 str = str + this.nomClient + " " + this.nomHotel + " " + this.date + " " + this.nbchambres;\r
74 return str;\r
75 }\r
76 \r
77}\r