from .IdentifiedObject import IdentifiedObject
from .CGMESProfile import Profile
[docs]class DynamicsFunctionBlock(IdentifiedObject):
"""
Abstract parent class for all Dynamics function blocks.
:enabled: Function block used indicator. true = use of function block is enabled false = use of function block is disabled. Default: False
"""
possibleProfileList = {
"class": [Profile.DY.value, ],
"enabled": [Profile.DY.value, ],
}
serializationProfile = {}
recommendedClassProfile = Profile.DY.value
__doc__ += "\nDocumentation of parent class IdentifiedObject:\n" + IdentifiedObject.__doc__
def __init__(self, enabled = False, *args, **kw_args):
super().__init__(*args, **kw_args)
self.enabled = enabled
def __str__(self):
str = "class=DynamicsFunctionBlock\n"
attributes = self.__dict__
for key in attributes.keys():
str = str + key + "={}\n".format(attributes[key])
return str