upgraded table status logic
This commit is contained in:
parent
d9611b6cd8
commit
2e79464483
@ -13,7 +13,7 @@ class Table(Object):
|
|||||||
|
|
||||||
def isActual(self, current_time):
|
def isActual(self, current_time):
|
||||||
if self.is_actual and self.agent_role == "table":
|
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_role(current_time)
|
||||||
self.reset_status()
|
self.reset_status()
|
||||||
|
|
||||||
@ -32,6 +32,8 @@ class Table(Object):
|
|||||||
|
|
||||||
def updateState(self, current_time, predictor):
|
def updateState(self, current_time, predictor):
|
||||||
if self.is_actual:
|
if self.is_actual:
|
||||||
|
if self.agent_role == "table":
|
||||||
|
self.waiting_time = current_time
|
||||||
return
|
return
|
||||||
self.unsetMark()
|
self.unsetMark()
|
||||||
self.is_actual = True
|
self.is_actual = True
|
||||||
|
Loading…
Reference in New Issue
Block a user