Commit 218e185b authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

availableOperators method returns all pool operators that are available currently

parent 5f603ae8
......@@ -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