Similar Code Analysis Report

This document contains the results of performing a similar code analysis of projectscellsociety_team05 at 9/29/16 2:16 PM.

Table of contents

number of lines number of occurrences names of resources
9 2 PredatorPreySimulation
12..5 2 TriangleGridView, HexagonGridView
3..2 2 SharkCell, FishCell
5 2 PredatorPreySimulation
7..6 2 PredatorPreySimulation, SegregationSimulation
9..7 2 PredatorPreySimulation, SegregationSimulation
16..15 2 PredatorPreySimulation, SegregationSimulation
2 2 FireSimulation, GameOfLifeSimulation
5 2 FireSimulation, GameOfLifeSimulation
2 2 XMLParser
1 2 Simulation, SegregationSimulation

List of matches

 

15..16 lines in PredatorPreySimulation, SegregationSimulation


PredatorPreySimulation
/cellsociety_team05/src/simulation/PredatorPreySimulation.java
SegregationSimulation
/cellsociety_team05/src/simulation/SegregationSimulation.java
    @Override 
    public void generateMap (int numberOfRows, 
                             int numberOfColumns, 
                             Grid cellGrid) { 
        for (int r = 0; r < numberOfRows; r++) { 
            for (int c = 0; c < numberOfColumns; c++) { 
                Coordinate coordinate = new Coordinate(r, c); 
                if (!cellGrid.isCreated(coordinate)) { 
                    EmptyCell cell = new EmptyCell(coordinate); 
 
                    cellGrid.addCell(cell); 
                } 
 
            } 
        } 
    } 
    @Override 
    public void generateMap (int numberOfRows, 
                             int numberOfColumns, 
                             Grid cellGrid) { 
        for (int r = 0; r < numberOfRows; r++) { 
            for (int c = 0; c < numberOfColumns; c++) { 
                Coordinate coordinate = new Coordinate(r, c); 
                if (!cellGrid.isCreated(coordinate)) { 
                    EmptyCell cell = new EmptyCell(coordinate); 
                    cellGrid.addCell(cell); 
                } 
 
            } 
        } 
    } 
9/29/16 2:16 PM Powered by CodePro Server