示例#1
0
 public SmartHome()
 {
     InitializeComponent();
     loadFile    = new LoadExcel();
     weatherList = new List <WeatherData>();
     weatherList = loadFile.loadExcel();
     ag1_        = new Agent1();
     ag2_        = new Agent2();
     ag3_        = new Agent3();
     ag4_        = new Agent4();
     ag5_        = new Agent5(this);
 }
示例#2
0
        public Agent5(SmartHome smarthome)
        {
            smartHome_ = smarthome;
            ag1_       = smartHome_.getAgent1();
            ag2_       = smartHome_.getAgent2();
            ag3_       = smartHome_.getAgent3();

            graph_       = new List <Node>();
            listOfGoals_ = new List <Node>();
            qMatrix_     = new double[height_, width_];
            generateGraph();
            matricesQ();
        }