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
...@@ -106,6 +106,12 @@ class OperatorPool(ObjectResource): ...@@ -106,6 +106,12 @@ class OperatorPool(ObjectResource):
break break
return freeOperator 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 # 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