Beispiel #1
0
        static void Main(string[] args)
        {
            SimulateurMeteo simulateurMeteo = new SimulateurMeteo(1000);
            Statisticien    statisticien    = new Statisticien(simulateurMeteo);

            statisticien.DemarrerAnalyse();
            statisticien.AfficherRapport();

            statisticien.DemarrerAnalyse();
            statisticien.AfficherRapport();

            statisticien.DemarrerAnalyse();
            statisticien.AfficherRapport();
        }
Beispiel #2
0
 public Statisticien(SimulateurMeteo simulateur)
 {
     simulateurMeteo = simulateur;
     nombreDeFoisOuLeTempsAChange = 0;
     nombreDeFoisOuIlAFaitSoleil  = 0;
 }