Source code for cimpy.cgmes_v2_4_15.Money

from .Base import Base
from .CGMESProfile import Profile


[docs]class Money(Base): """ Amount of money. :multiplier: Default: None :unit: Default: None :value: Default: 0.0 """ possibleProfileList = { "class": [Profile.EQ.value, ], "multiplier": [Profile.EQ.value, ], "unit": [Profile.EQ.value, ], "value": [Profile.EQ.value, ], } serializationProfile = {} recommendedClassProfile = Profile.EQ.value def __init__(self, multiplier = None, unit = None, value = 0.0): self.multiplier = multiplier self.unit = unit self.value = value def __str__(self): str = "class=Money\n" attributes = self.__dict__ for key in attributes.keys(): str = str + key + "={}\n".format(attributes[key]) return str