Add household class for occupancy
This commit is contained in:
parent
f22183331b
commit
1b2513692f
36
city_model_structure/household.py
Normal file
36
city_model_structure/household.py
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user