예제 #1
0
 def setUp(self):
     self.agent_PV = agents.PV(agent_id=0)
     self.house = agentgroups.ResidentialBuilding(group_id=0)
     self.house.add(self.agent_PV)
     self.event_PV = self.house.get_list_eventhandlers()[0]
     self.irradiance_data = [0.1, 0.2, 0.3]
     self.event_PV.set_irradiance_data(self.irradiance_data)
예제 #2
0
 def setUp(self):
     self.globalcontroller = controllers.TravaccaEtAl2017GlobalController()
     self.house = agentgroups.ResidentialBuilding(0)
     self.localcontroller = controllers.TravaccaEtAl2017LocalController(
         self.house, self.globalcontroller)
     self.globalcontroller.set_list_localcontrollers([self.localcontroller])
예제 #3
0
 def setUp(self):
     self.house = agentgroups.ResidentialBuilding(0)
     self.globalcontroller = controllers.GlobalController()
     self.housecontroller = controllers.LocalController(
         self.house, self.globalcontroller)
예제 #4
0
 def setUp(self):
     self.house = agentgroups.ResidentialBuilding(group_id=0)
예제 #5
0
 def setUp(self):
     self.agent_EV = agents.EV(agent_id=0)
     self.house = agentgroups.ResidentialBuilding(group_id=0)
     self.house.add(self.agent_EV)
예제 #6
0
 def setUp(self):
     self.agent_PV = agents.PV(agent_id=0)
     self.house = agentgroups.ResidentialBuilding(group_id=0)
     self.house.add(self.agent_PV)
     self.event = self.house.get_list_eventhandlers()[0]