コード例 #1
0
ファイル: CompoundMachine.py プロジェクト: goodhobak/dream
 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)  
コード例 #2
0
 def canAccept(self, callerObject=None):
     if self.locked:
         return False
     if self.state==0:
         return False
     return Machine.canAccept(self, callerObject)   
コード例 #3
0
 def canAccept(self, callerObject=None):
     if self.locked:
         return False
     if self.state == 0:
         return False
     return Machine.canAccept(self, callerObject)
コード例 #4
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)