Accumulator.py 1.19 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from cimpy.output.Measurement import Measurement


class Accumulator(Measurement):
	'''
	Accumulator represents an accumulated (counted) Measurement, e.g. an energy value.

	:LimitSets: The Measurements using the LimitSet. Default: 
	:AccumulatorValues: Measurement to which this value is connected. Default: 
		'''

	cgmesProfile = Measurement.cgmesProfile

	possibleProfileList = {'class': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'LimitSets': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						'AccumulatorValues': [cgmesProfile.{'$rdf:datatype': 'http://www.w3.org/2001/XMLSchema#string', '_': 'EQ'}.value, ],
						 }

	serializationProfile = {}

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

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