using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VP { //_________________________________________________ //class : création de la classe travel //date : 26/11/2011 //_________________________________________________ [Serializable] class Travel { private DateTime dateDebutVoyage; private DateTime dateFinVoyage; private string destination; private int duree; private string personneQuiVoyage; private string moyenDeLocomotion; private Vehicle vehicle; private int kilometre; /* Constructeur */ public Travel(string dest, int duree, DateTime dateD, DateTime dateF, string Pers, string Loco, Vehicle v, int km) { this.destination = dest; this.duree = duree; this.dateDebutVoyage = dateD; this.dateFinVoyage = dateF; this.personneQuiVoyage = Pers; this.moyenDeLocomotion = Loco; this.vehicle = v; this.kilometre = km; } //_________________________________________________ //class : getters de travel //date : 26/11/2011 //_________________________________________________ public DateTime getDateD() { return this.dateDebutVoyage; } public DateTime getDateF() { return this.dateFinVoyage; } public string getDestination() { return this.destination; } public string getVoyageur() { return this.personneQuiVoyage; } public string getMoyenDeLocomotion() { return this.moyenDeLocomotion; } public int getDuree() { return this.duree; } public Vehicle getVehicle() { return this.vehicle; } public int getKm() { return this.kilometre; } } }