BasicIntervalSchedule.py 1.1 KB
Newer Older
1
from cimpy.cgmes_v2_4_15.IdentifiedObject import IdentifiedObject
2
3
4
5
6
7
8
9
10
11
12


class BasicIntervalSchedule(IdentifiedObject):
	'''
	Schedule of values at points in time.

	:startTime: The time for the first time point. Default: ''
	:value1Unit: Value1 units of measure. Default: None
	:value2Unit: Value2 units of measure. Default: None
		'''

13
14
	cgmesProfile = IdentifiedObject.cgmesProfile

Philipp Reuber's avatar
Philipp Reuber committed
15
16
17
18
19
20
	possibleProfileList = {'class': [cgmesProfile.EQ.value, ],
						'startTime': [cgmesProfile.EQ.value, ],
						'value1Unit': [cgmesProfile.EQ.value, ],
						'value2Unit': [cgmesProfile.EQ.value, ],
						 }

21
	serializationProfile = {}
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

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

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