79 lines
2.5 KiB
Python
79 lines
2.5 KiB
Python
import hub.helpers.constants as cte
|
|
|
|
class HubFunctionToMatsimActivity:
|
|
"""
|
|
Hub function to nrcan construction function class
|
|
"""
|
|
def __init__(self):
|
|
self._dictionary = {
|
|
cte.RESIDENTIAL: 'home',
|
|
cte.SINGLE_FAMILY_HOUSE: 'home',
|
|
cte.MULTI_FAMILY_HOUSE: 'home',
|
|
cte.ROW_HOUSE: 'home',
|
|
cte.MID_RISE_APARTMENT: 'home',
|
|
cte.HIGH_RISE_APARTMENT: 'home',
|
|
cte.OFFICE_AND_ADMINISTRATION: 'work',
|
|
cte.SMALL_OFFICE: 'work',
|
|
cte.MEDIUM_OFFICE: 'work',
|
|
cte.LARGE_OFFICE: 'work',
|
|
cte.COURTHOUSE: 'work',
|
|
cte.FIRE_STATION: 'work',
|
|
cte.PENITENTIARY: 'work',
|
|
cte.POLICE_STATION: 'work',
|
|
cte.POST_OFFICE: 'work',
|
|
cte.LIBRARY: 'edu',
|
|
cte.EDUCATION: 'edu',
|
|
cte.PRIMARY_SCHOOL: 'edu',
|
|
cte.PRIMARY_SCHOOL_WITH_SHOWER: 'edu',
|
|
cte.SECONDARY_SCHOOL: 'edu',
|
|
cte.UNIVERSITY: 'edu',
|
|
cte.LABORATORY_AND_RESEARCH_CENTER: 'edu',
|
|
cte.STAND_ALONE_RETAIL: 'secondary',
|
|
cte.HOSPITAL: 'work',
|
|
cte.OUT_PATIENT_HEALTH_CARE: 'work',
|
|
cte.HEALTH_CARE: 'work',
|
|
cte.RETIREMENT_HOME_OR_ORPHANAGE: 'home',
|
|
cte.COMMERCIAL: 'secondary',
|
|
cte.STRIP_MALL: 'secondary',
|
|
cte.SUPERMARKET: 'secondary',
|
|
cte.RETAIL_SHOP_WITHOUT_REFRIGERATED_FOOD: 'secondary',
|
|
cte.RETAIL_SHOP_WITH_REFRIGERATED_FOOD: 'secondary',
|
|
cte.RESTAURANT: 'secondary',
|
|
cte.QUICK_SERVICE_RESTAURANT: 'secondary',
|
|
cte.FULL_SERVICE_RESTAURANT: 'secondary',
|
|
cte.HOTEL: 'work',
|
|
cte.HOTEL_MEDIUM_CLASS: 'work',
|
|
cte.SMALL_HOTEL: 'work',
|
|
cte.LARGE_HOTEL: 'work',
|
|
cte.DORMITORY: 'work',
|
|
cte.EVENT_LOCATION: 'secondary',
|
|
cte.CONVENTION_CENTER: 'secondary',
|
|
cte.HALL: 'secondary',
|
|
cte.GREEN_HOUSE: 'secondary',
|
|
cte.INDUSTRY: 'work',
|
|
cte.WORKSHOP: 'work',
|
|
cte.WAREHOUSE: 'work',
|
|
cte.WAREHOUSE_REFRIGERATED: 'work',
|
|
cte.SPORTS_LOCATION: 'secondary',
|
|
cte.SPORTS_ARENA: 'secondary',
|
|
cte.GYMNASIUM: 'secondary',
|
|
cte.MOTION_PICTURE_THEATRE: 'secondary',
|
|
cte.MUSEUM: 'secondary',
|
|
cte.PERFORMING_ARTS_THEATRE: 'secondary',
|
|
cte.TRANSPORTATION: 'secondary',
|
|
cte.AUTOMOTIVE_FACILITY: 'work',
|
|
cte.PARKING_GARAGE: 'work',
|
|
cte.RELIGIOUS: 'secondary',
|
|
cte.NON_HEATED: 'secondary',
|
|
cte.DATACENTER: 'work',
|
|
cte.FARM: 'work'
|
|
}
|
|
|
|
@property
|
|
def dictionary(self) -> dict:
|
|
"""
|
|
Get the dictionary
|
|
:return: {}
|
|
"""
|
|
return self._dictionary
|