from .Base import Base
from .CGMESProfile import Profile
[docs]
class IdentifiedObject(Base):
"""
This is a root class to provide common identification for all classes needing identification and naming attributes.
:DiagramObjects: The domain object to which this diagram object is associated. Default: "list"
:description: The description is a free human readable text describing or naming the object. It may be non unique and may not correlate to a naming hierarchy. Default: ''
:energyIdentCodeEic: The attribute is used for an exchange of the EIC code (Energy identification Code). The length of the string is 16 characters as defined by the EIC code. References: Default: ''
:mRID: Master resource identifier issued by a model authority. The mRID is globally unique within an exchange context. Global uniqueness is easily achieved by using a UUID, as specified in RFC 4122, for the mRID. The use of UUID is strongly recommended. For CIMXML data files in RDF syntax conforming to IEC 61970-552 Edition 1, the mRID is mapped to rdf:ID or rdf:about attributes that identify CIM object elements. Default: ''
:name: The name is any free human readable and possibly non unique text naming the object. Default: ''
:shortName: The attribute is used for an exchange of a human readable short name with length of the string 12 characters maximum. Default: ''
"""
possibleProfileList = {
"class": [Profile.DL.value, Profile.DY.value, Profile.EQ_BD.value, Profile.EQ.value, Profile.GL.value, Profile.SV.value, Profile.SSH.value, Profile.TP_BD.value, Profile.TP.value, ],
"DiagramObjects": [Profile.DL.value, ],
"description": [Profile.DY.value, Profile.EQ_BD.value, Profile.EQ.value, Profile.TP_BD.value, Profile.TP.value, ],
"energyIdentCodeEic": [Profile.EQ_BD.value, Profile.EQ.value, Profile.TP_BD.value, Profile.TP.value, ],
"mRID": [Profile.DL.value, Profile.DY.value, Profile.EQ_BD.value, Profile.EQ.value, Profile.GL.value, Profile.SV.value, Profile.SSH.value, Profile.TP_BD.value, Profile.TP.value, ],
"name": [Profile.DL.value, Profile.DY.value, Profile.EQ_BD.value, Profile.EQ.value, Profile.GL.value, Profile.SV.value, Profile.SSH.value, Profile.TP_BD.value, Profile.TP.value, ],
"shortName": [Profile.EQ_BD.value, Profile.EQ.value, Profile.TP_BD.value, Profile.TP.value, ],
}
serializationProfile = {}
recommendedClassProfile = Profile.EQ.value
def __init__(self, DiagramObjects = "list", description = '', energyIdentCodeEic = '', mRID = '', name = '', shortName = ''):
self.DiagramObjects = DiagramObjects
self.description = description
self.energyIdentCodeEic = energyIdentCodeEic
self.mRID = mRID
self.name = name
self.shortName = shortName
def __str__(self):
str = "class=IdentifiedObject\n"
attributes = self.__dict__
for key in attributes.keys():
str = str + key + "={}\n".format(repr(attributes[key]))
return str