ActivePower.py 1.1 KB
Newer Older
1
from cimpy.cgmes_v2_4_15.Base import Base
Philipp Reuber's avatar
Philipp Reuber committed
2
3
4
5
6
7
8
9
10
11
12


class ActivePower(Base):
	'''
	Product of RMS value of the voltage and the RMS value of the in-phase component of the current.

	:value:  Default: 0.0
	:unit:  Default: None
	:multiplier:  Default: None
		'''

13
14
	cgmesProfile = Base.cgmesProfile

Philipp Reuber's avatar
Philipp Reuber committed
15
16
17
18
19
20
	possibleProfileList = {'class': [cgmesProfile.DY.value, cgmesProfile.EQ.value, cgmesProfile.SV.value, cgmesProfile.SSH.value, ],
						'value': [cgmesProfile.DY.value, cgmesProfile.EQ.value, cgmesProfile.SV.value, cgmesProfile.SSH.value, ],
						'unit': [cgmesProfile.DY.value, cgmesProfile.EQ.value, cgmesProfile.SV.value, cgmesProfile.SSH.value, ],
						'multiplier': [cgmesProfile.DY.value, cgmesProfile.EQ.value, cgmesProfile.SV.value, cgmesProfile.SSH.value, ],
						 }

21
	serializationProfile = {}
Philipp Reuber's avatar
Philipp Reuber committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

	

	def __init__(self, value = 0.0, unit = None, multiplier = None,  ):
	
		self.value = value
		self.unit = unit
		self.multiplier = multiplier
		
	def __str__(self):
		str = 'class=ActivePower\n'
		attributes = self.__dict__
		for key in attributes.keys():
			str = str + key + '={}\n'.format(attributes[key])
		return str