Esempio n. 1
0
 def __init__(self, model, name, description, rawExpression, engExpression, period = 0):
     TmItemClass.__init__(self,model.tmClass,name,description)
     self._status = True
     self.model = model
     self.rawExpression = rawExpression
     self.engExpression = engExpression
     self.rawValue = None
     self.engValue = None
     self.period = period
     self.timerCount = 0
     self.currentPosition = -1
     LOG("NAME: " + repr(name) + ", DESC:" + repr(description))
     self._recalculate()
Esempio n. 2
0
 def __init__(self, model, name, description, rawExpression, engExpression, period = 0):
     TmItemClass.__init__(self,model.tmClass,name,description)
     self._status = True
     self.model = model
     self.rawExpression = rawExpression
     self.engExpression = engExpression
     self.rawValue = None
     self.engValue = None
     self.period = period
     self.timerCount = 0
     self.currentPosition = -1
     LOG("NAME: " + repr(name) + ", DESC:" + repr(description))
     self.updateEvent = Event()
     self._recalculate()
Esempio n. 3
0
 def __init__(self, model, name, description, rawExpression, engExpression, updateType = UPDATE_NONE, updatePeriod = 0 ):
     TmItemClass.__init__(self,model.tmClass,name,description)
     self._status = True
     self.model = model
     self.rawExpression = rawExpression
     self.engExpression = engExpression
     self.rawValue = None
     self.engValue = None
     self.updateType = updateType
     self.updatePeriod = updatePeriod
     self.currentPosition = -1
     LOG("NAME: " + repr(name) + ", DESC:" + repr(description))
     if self.updateType == UPDATE_TIME:
         self.timerCount = 0
         self.updateEvent = Event()
     self._recalculate()