示例#1
0
 def __init__(self, uri=None):
     ValueObject.__init__(self, uri)
     self.setType(RESOURCE.EVALUATION)
     self.categories = []
     self.entities = []
     self.timeSeries = []
     self.systemOfInterest = None
     self.value = None
     self.valueObjects = []
     self.inputs = []
     self.outputs = []
     self.interfaces = []
     self.activities = []
     self.list = None
     self.map = Map()
示例#2
0
	def __init__(self, uri = None, quantity = None, unit = None, value = None, maximum = None, system_of_interest = None):
		ValueObject.__init__(self, uri = uri, quantity = quantity, unit = unit, value = value, maximum = maximum)
		self.automatic_percentage_calculation = True
		self.system_of_interest = system_of_interest
		self.percentage = None
		self.setType(RESOURCE.CAPACITY)