system_assignation/city_model_structure/building_demand/household.py

32 lines
630 B
Python
Raw Normal View History

2021-10-18 16:07:18 -04:00
"""
Household module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
"""
class Household:
"""
Household class
"""
def __init__(self):
self._number_of_people = None
self._number_of_cars = None
@property
def number_of_people(self):
"""
Get number of people leaving in the household
:return: int
"""
return self._number_of_people
@property
def number_of_cars(self):
"""
Get number of cars owned by the householders
:return: int
"""
return self._number_of_cars