public Analysis < SolutionType > setNumRuns ( String searchID , int n ) { if ( ! searches . containsKey ( searchID ) ) { throw new UnknownIDException ( "No search with ID " + searchID + " has been added." ) ; } if ( n <= 0 ) { throw new IllegalArgumentException ( "Number of runs should be strictly positive." ) ; } searchNumRuns . put ( searchID , n ) ; return this ; }
Set the number of runs to be performed for the given search . This does not affect the number of runs of the other searches . Returns a reference to the analysis object on which this method was called so that methods can be chained .