public static boolean arePoolsIdle ( ) { boolean idle = true ; for ( int i = 0 ; i < npools ; i ++ ) { idle &= ( intentionSelectors [ i ] == null ) || intentionSelectors [ i ] . isIdle ( ) ; } return idle ; }
Checks if the system is idle i . e . all the agents pools are idle