src/gui/heatmap/ControlPane.java
private void parseLog(File f) {
        heatMaps.clear();
        try (Scanner input = new Scanner(f)) {
            while (input.hasNextLine()) {
                if (input.nextLine().matches(".*?Heat map after ([0-9]*) rounds.*?")) {
                    heatMaps.add(parseHeatMap(input));
                }
            }
        } catch (Exception e) {
            log.severe("Could not parse heat map: " + f);
            e.printStackTrace();
        }
    }
/**
     * Populates the heatmap list with all heatmap dumps in the
     * specified log file.
     */
Populates the heatmap list with all heatmap dumps in the
specified log file.
Populates the heatmap list with all heatmap dumps in the specified log file .
private void parseLog(File f) {
        heatMaps.clear();
        try (Scanner input = new Scanner(f)) {
            while (input.hasNextLine()) {
                if (input.nextLine().matches(".*?Heat map after ([0-9]*) rounds.*?")) {
                    heatMaps.add(parseHeatMap(input));
                }
            }
        } catch (Exception e) {
            log.severe("Could not parse heat map: " + f);
            e.printStackTrace();
        }
    }
private void parseLog ( File f ) { heatMaps . clear ( ) ; try ( Scanner input = new Scanner ( f ) ) { while ( input . hasNextLine ( ) ) { if ( input . nextLine ( ) . matches ( ".*?Heat map after ([0-9]*) rounds.*?" ) ) { heatMaps . add ( parseHeatMap ( input ) ) ; } } } catch ( Exception e ) { log . severe ( "Could not parse heat map: " + f ) ; e . printStackTrace ( ) ; } }
Populates the heatmap list with all heatmap dumps in the
 specified log file.
Populates the heatmap list with all heatmap dumps in the specified log file .