Commit 106651ba authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

availableOperators method returns all pool operators that are available currently

parent 0f6e6f6a
......@@ -105,6 +105,12 @@ class OperatorPool(ObjectResource):
freeOperator=operator
break
return freeOperator
#===========================================================================
# returns the operators that are currently available
#===========================================================================
def availableOperators(self):
return [operator for operator in self.operators if operator.checkIfResourceIsAvailable()]
# =======================================================================
# returns the resource
......
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