using System; using System.Collections.Generic; using System.Linq; using System.Text; /*******************************************************/ /*******************************************************/ /* Logiciel crée par Milosevic Stefan & Jactel Vincent */ /*******************************************************/ /*******************************************************/ namespace VP { /********************************************************/ /* Class : Pour les voyages */ /********************************************************/ [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; } /*************/ /* GETTERS */ /*************/ 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; } } }