added to_dictionary to abstract class

This commit is contained in:
Pilar Monsalvete 2023-08-29 12:31:06 -04:00
parent 8dbeeaafa1
commit d4b424357d

View File

@ -11,7 +11,7 @@ from abc import ABC
class EnergyStorageSystem(ABC):
""""
Energy Storage System Class
Energy Storage System Abstract Class
"""
def __init__(self, storage_id, name, model_name, manufacturer, storage_type, nominal_capacity, losses_ratio):
@ -79,3 +79,7 @@ class EnergyStorageSystem(ABC):
:return: float
"""
return self._losses_ratio
def to_dictionary(self):
"""Class content to dictionary"""
raise NotImplementedError