def canAccept(self, callerObject=None): # if the next machine holds a part return false if len(self.next[0].getActiveObjectQueue()): return False # else use the default Queue logic return Queue.canAccept(self, callerObject)
def canAccept(self, callerObject=None): if self.locked: return False return Queue.canAccept(self, callerObject)