Example #1
0
 def __init__(self, arrTimeInterval):
     try:
         self._schedules = arrTimeInterval
         BaseCriteria.__init__(self, "")
         #TODO:: Validate if all intervals actual is a TimeInterval
     except:
         LogException()
Example #2
0
    def __init__(self, objRule, duration, arrSequences):
        try:

            BaseCriteria.__init__(self, "")
            #TODO:: Might want to improve this a bit. The sequence will then be controlled on when oh is started
            self._sequenceBaseTimestamp = DateTime()
            self._sequenceDuration = duration
            self._dictSequences = {}
            self._objRule = objRule

            for curSequence in arrSequences:
                if (curSequence.getName() not in self._dictSequences):
                    self._dictSequences[curSequence.getName()] = [curSequence]
                else:
                    self._dictSequences[curSequence.getName()].append(
                        curSequence)

            #TODO:: Validate if all sequences is a SequenceItem
        except:
            LogException()
Example #3
0
 def __init__(self, methodName):
     self._methodName = methodName
     BaseCriteria.__init__(self, "")
Example #4
0
 def getRequiredServices(self):
     return list(set(BaseCriteria.getRequiredServices(self)))
Example #5
0
 def __init__(self):
     BaseCriteria.__init__(self, "")
Example #6
0
 def getRequiredServices(self):
     return BaseCriteria.getRequiredServices(self)
Example #7
0
 def getRequiredServices(self):
     return list(
         set(
             BaseCriteria.getRequiredServices(self) +
             [RequiredServiceEnum.ASTRO]))