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