upgraded table status logic

This commit is contained in:
Vadzim Valchkovich 2023-06-08 21:39:54 +02:00
parent d9611b6cd8
commit 2e79464483

View File

@ -13,7 +13,7 @@ class Table(Object):
def isActual(self, current_time):
if self.is_actual and self.agent_role == "table":
if current_time - self.waiting_time > 1000:
if current_time - self.waiting_time > 500:
self.reset_role(current_time)
self.reset_status()
@ -32,6 +32,8 @@ class Table(Object):
def updateState(self, current_time, predictor):
if self.is_actual:
if self.agent_role == "table":
self.waiting_time = current_time
return
self.unsetMark()
self.is_actual = True