예제 #1
0
 def __init__(self, measureNode):
     self.propSpec = measureNode.get("property")
     self.property = Property(self.propSpec)
     self.key = Property(
         measureNode.get("key")) if "key" in measureNode.attrib else None
     self.category = measureNode.get("category", self.propSpec)
     self.kind = Collector.types.index(measureNode.get("type"))
예제 #2
0
 def __init__(self, transaction, xmlSource):
     super().__init__(transaction, xmlSource)
     self.epoch = Property(xmlSource.get("epoch", "s.t"))
     self.period = xmlSource.get("period", None)
     if self.period is not None:
         self.period = number(self.period)
     self.time = getXValue(xmlSource, "time", XValueHelper(self))
예제 #3
0
 def __init__(self, transaction, xmlSource):
     super().__init__(transaction, xmlSource)
     self.value = getXValue(xmlSource, "value", self.xcontext)
     self.property = Property(xmlSource.get("property"))
예제 #4
0
 def __init__(self, transaction, xmlSource):
     super().__init__(transaction, xmlSource)
     self.property = Property(xmlSource.get("property"))
     self.attributeSetter(("minimum", float), ("maximum", float))
예제 #5
0
 def __init__(self, transaction, xmlSource):
     super().__init__(transaction, xmlSource)
     self.property = Property(xmlSource.get("property"))