private void addManySimons ( String prefix , int depth , int groupWidth , int leafWidth , int splitWidth ) { if ( depth == 0 ) { // Generate Simons of type Stopwatch final int sibblings = randomInt ( Math . min ( 1 , groupWidth / 2 ) , leafWidth ) ; for ( int i = 0 ; i < sibblings ; i ++ ) { String name = prefix + "." + ALPHABET . charAt ( i ) ; addStopwatchSplits ( SimonManager . getStopwatch ( name ) , splitWidth ) ; } } else { // Generate Simons of type Unknown final int sibblings = randomInt ( Math . min ( 1 , groupWidth / 2 ) , groupWidth ) ; for ( int i = 0 ; i < sibblings ; i ++ ) { String name = prefix + "." + ALPHABET . charAt ( i ) ; addManySimons ( name , depth - 1 , groupWidth , leafWidth , splitWidth ) ; } } }
Recursively Add many Simons for performances testing .