示例#1
0
 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)
示例#2
0
 def canAccept(self, callerObject=None):
     if self.locked:
         return False
     return Queue.canAccept(self, callerObject)
 def canAccept(self, callerObject=None):
     if self.locked:
         return False
     return Queue.canAccept(self, callerObject)
示例#4
0
 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)