Exemplo n.º 1
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(
         self.m_pyhouse_obj).LoadFamilyTesting()
     #
     lightingAPI(self.m_pyhouse_obj).LoadXml(self.m_pyhouse_obj)
Exemplo n.º 2
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_light_obj = LightData()
     self.m_api = lightingAPI(self.m_pyhouse_obj)
     self.m_family = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     self.m_pyhouse_obj.House.FamilyData = self.m_family
     self.m_version = '1.4.0'
Exemplo n.º 3
0
 def _init_component_apis(p_pyhouse_obj, p_api):
     """
     Initialize all the house APIs
     """
     p_pyhouse_obj.APIs.House.HouseAPI = p_api
     p_pyhouse_obj.APIs.House.EntertainmentAPI = entertainmentAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.FamilyAPI = familyAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.HvacAPI = hvacAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.IrrigationAPI = irrigationAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.LightingAPI = lightingAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.PoolAPI = poolAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.ScheduleAPI = scheduleAPI(p_pyhouse_obj)
     p_pyhouse_obj.APIs.House.SecurityAPI = securityAPI(p_pyhouse_obj)
Exemplo n.º 4
0
 def setUp(self, p_root):
     self.m_pyhouse_obj = SetupPyHouseObj().BuildPyHouseObj(p_root)
     self.m_xml = SetupPyHouseObj().BuildXml(p_root)
     self.m_pyhouse_obj.House.FamilyData = familyAPI(self.m_pyhouse_obj).LoadFamilyTesting()
     #
     lightingAPI(self.m_pyhouse_obj).LoadXml(self.m_pyhouse_obj)