From 1b2513692ff1bc6ee2c391e7cf7b771063fd945e Mon Sep 17 00:00:00 2001 From: SanamDabirian Date: Sat, 17 Oct 2020 01:49:33 -0400 Subject: [PATCH] Add household class for occupancy --- city_model_structure/household.py | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 city_model_structure/household.py diff --git a/city_model_structure/household.py b/city_model_structure/household.py new file mode 100644 index 00000000..81f9a19b --- /dev/null +++ b/city_model_structure/household.py @@ -0,0 +1,36 @@ +""" +Building module +SPDX - License - Identifier: LGPL - 3.0 - or -later +Copyright © 2020 Project Author Sanam Dabirian sanam.dabirian@mail.concordia.ca +""" + + +class household: + """ + Household class + """ + + def __init__(self, resident_type, household_type): + """ + Constructor + """ + + self._resident_type = resident_type + self._household_type = household_type + + + @property + def resident_type(self): + """ + Get resident type + :return: resident type + """ + return self._resident_type + + @property + def household_type(self): + """ + Get household type + :return: household type + """ + return self._household_type \ No newline at end of file