AccumulatorLimitSet.py 998 Bytes
Newer Older
Richard Marston's avatar
Richard Marston committed
1
from cimpy.cgmes_v2_4_15.LimitSet import LimitSet
2
3
4
5
6
7
8
9
10
11
12
13


class AccumulatorLimitSet(LimitSet):
	'''
	An AccumulatorLimitSet specifies a set of Limits that are associated with an Accumulator measurement.

	:Measurements: A measurement may have zero or more limit ranges defined for it. Default: 
	:Limits: The set of limits. Default: 
		'''

	cgmesProfile = LimitSet.cgmesProfile

Richard Marston's avatar
Richard Marston committed
14
15
16
	possibleProfileList = {'class': [cgmesProfile.EQ.value, ],
						'Measurements': [cgmesProfile.EQ.value, ],
						'Limits': [cgmesProfile.EQ.value, ],
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
						 }

	serializationProfile = {}

	__doc__ += '\n Documentation of parent class LimitSet: \n' + LimitSet.__doc__ 

	def __init__(self, Measurements = , Limits = ,  *args, **kw_args):
		super().__init__(*args, **kw_args)
	
		self.Measurements = Measurements
		self.Limits = Limits
		
	def __str__(self):
		str = 'class=AccumulatorLimitSet\n'
		attributes = self.__dict__
		for key in attributes.keys():
			str = str + key + '={}\n'.format(attributes[key])
		return str