Exemple #1
0
 def canAccept(self, callerObject=None):
     # do not start processing unless there are enough parts 
     # (i.e. equal to the number of processes) in the compound machine
     if not self.countInternalParts()==len(G.InternalProcessList):
         return False
     return Machine.canAccept(self, callerObject)  
 def canAccept(self, callerObject=None):
     if self.locked:
         return False
     if self.state==0:
         return False
     return Machine.canAccept(self, callerObject)   
 def canAccept(self, callerObject=None):
     if self.locked:
         return False
     if self.state == 0:
         return False
     return Machine.canAccept(self, callerObject)
 def canAccept(self, callerObject=None):
     # do not start processing unless there are enough parts
     # (i.e. equal to the number of processes) in the compound machine
     if not self.countInternalParts() == len(G.InternalProcessList):
         return False
     return Machine.canAccept(self, callerObject)