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)
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])
def setUp(self): self.house = agentgroups.ResidentialBuilding(0) self.globalcontroller = controllers.GlobalController() self.housecontroller = controllers.LocalController( self.house, self.globalcontroller)
def setUp(self): self.house = agentgroups.ResidentialBuilding(group_id=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)
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]