forked from s_ranjbar/city_retrofit
added to_dictionary to abstract class
This commit is contained in:
parent
8dbeeaafa1
commit
d4b424357d
|
@ -11,7 +11,7 @@ from abc import ABC
|
||||||
|
|
||||||
class EnergyStorageSystem(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):
|
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: float
|
||||||
"""
|
"""
|
||||||
return self._losses_ratio
|
return self._losses_ratio
|
||||||
|
|
||||||
|
def to_dictionary(self):
|
||||||
|
"""Class content to dictionary"""
|
||||||
|
raise NotImplementedError
|
||||||
|
|
Loading…
Reference in New Issue
Block a user