public void process ( List < List < SquareNode > > clusters ) { grids . reset ( ) ; for ( int i = 0 ; i < clusters . size ( ) ; i ++ ) { if ( checkPreconditions ( clusters . get ( i ) ) ) processCluster ( clusters . get ( i ) ) ; } }
Converts all the found clusters into grids if they are valid .