From 77d1c01755bbdc6bfc9b7cb2de6747b5c996901f Mon Sep 17 00:00:00 2001 From: Pilar Date: Mon, 9 Aug 2021 11:27:25 -0400 Subject: [PATCH] added one more class in transport --- city_model_structure/transport/prohibition.py | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 city_model_structure/transport/prohibition.py diff --git a/city_model_structure/transport/prohibition.py b/city_model_structure/transport/prohibition.py new file mode 100644 index 00000000..5b8ad957 --- /dev/null +++ b/city_model_structure/transport/prohibition.py @@ -0,0 +1,48 @@ +""" +Prohibition module +SPDX - License - Identifier: LGPL - 3.0 - or -later +Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca +Contributor Milad milad.aghamohamadnia@concordia.ca +""" + + +class Prohibition: + """ + Prohibition class + """ + + def __init__(self): + self._prohibitor = None + self._prohibited = None + + @property + def prohibitor(self): + """ + prohibitor + :return: str + """ + return self._prohibitor + + @prohibitor.setter + def prohibitor(self, value): + """ + prohibitor setter + :param value: str + """ + self._prohibitor = value + + @property + def prohibited(self): + """ + prohibited + :return: str + """ + return self._prohibited + + @prohibited.setter + def prohibited(self, value): + """ + prohibited setter + :param value: str + """ + self._prohibited = value