Commit 23364a84 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

hasOneOption method removed

parent e019a227
...@@ -70,14 +70,6 @@ class OperatorManagedJob(Operator): ...@@ -70,14 +70,6 @@ class OperatorManagedJob(Operator):
# if self.operatorAssignedTo==None: # if self.operatorAssignedTo==None:
# return False # return False
return len(activeResourceQueue)<self.capacity return len(activeResourceQueue)<self.capacity
#===========================================================================
# check if the operator has only one station as candidate option
#===========================================================================
def hasOneOption(self):
if len(self.candidateEntities)==1:
# if the candidate entity has only one receiver then return True
return len(self.candidateEntities[0].candidateReceivers)==1
#======================================================================= #=======================================================================
# findCandidateEntities method finding the candidateEntities of the operator # findCandidateEntities method finding the candidateEntities of the operator
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment