AccumulatorValue.py 1.43 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
35
36
37
from cimpy.output.MeasurementValue import MeasurementValue


class AccumulatorValue(MeasurementValue):
	'''
	AccumulatorValue represents an accumulated (counted) MeasurementValue.

	:Accumulator: The values connected to this measurement. Default: 
	:AccumulatorReset: The command that reset the accumulator value. Default: 
	:value: The value to supervise. The value is positive. Default: 
		'''

	cgmesProfile = MeasurementValue.cgmesProfile

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

	serializationProfile = {}

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

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