Exemple #1
0
 def __init__(self, unit, text='', priority=Priority.normal):
     self.unit = unit
     self.text = str(text)
     self.time = time.time()
     self.priority = priority
     # deductions from previous data
     self.coords = unit.coords
Exemple #2
0
 def is_executable(self):
     return self.time <= time.time()
Exemple #3
0
 def __init__(self, time_shift=0.01):
     self.time = time.time() + time_shift
Exemple #4
0
 def is_executable(self):
     return self.time <= time.time()
Exemple #5
0
 def __init__(self, time_shift=0.01):
     self.time = time.time() + time_shift
Exemple #6
0
 def _actualize_report_time(self):
     self.next_report_time = time.time() + self.report_timestamp
Exemple #7
0
 def remain_report_time(self):
     return self.next_report_time - time.time()