Beispiel #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 //[STAThread]
 //static void Main()
 //{
 //    Application.EnableVisualStyles();
 //    Application.SetCompatibleTextRenderingDefault(false);
 //    //Application.Run(new Greenhouse());
 //}
 public Greenhouse()
 {
     time = new Time();
     gp   = new GrowthPlan(time);
     e    = new Environment();
     rm   = new RegulatorMap();
     sm   = new SensorMap();
     listOfControllers    = new Controllers();
     listOfControllers.ac = new AcidityController(rm, sm, gp);
     listOfControllers.lc = new LightController(rm, sm, gp);
     listOfControllers.tc = new TemperatureController(rm, sm, gp);
     listOfControllers.wc = new WetnessController(rm, sm, gp);
 }
 public TemperatureController(RegulatorMap rm, SensorMap sm, GrowthPlan gp)
 {
     this.rm = rm;
     this.sm = sm;
     this.gp = gp;
 }
Beispiel #3
0
 public WetnessController(RegulatorMap rm, SensorMap sm, GrowthPlan gp)
 {
     this.rm = rm;
     this.sm = sm;
     this.gp = gp;
 }