Similar Code Analysis Report

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

Table of contents

number of lines number of occurrences names of resources
6..5 2 SegregationRules, SpreadingOfFireRules
6..4 2 PredatorPreyRules
9..6 2 PredatorPreyRules
9 2 SpreadingOfFireCell, PredatorPreyCell
9 2 SegregationCell, GameOfLifeCell
12 3 SegregationDisplayCell, PredatorPreyDisplayCell, SpreadingOfFireDisplayCell
19..5 2 CellSocietyController, Main
4 2 SegregationRules, PredatorPreyRules
4 2 CellSocietyController, Main
1 2 DisplayGrid

List of matches

 

5..19 lines in CellSocietyController, Main


Main
/cellsociety_team11/src/xml/main/Main.java
CellSocietyController
/cellsociety_team11/src/cellsociety_team11/CellSocietyController.java
        XMLParser parser = new XMLParser(); 
        SimulationXMLFactory factory = new SimulationXMLFactory("Simulation"); 
        /* 
        for (File f : folder.listFiles()) { 
            if (f.isFile() && f.getName().endsWith(XML_SUFFIX)) { 
                try { 
                    SimulationXMLModel p = factory.getSimulation(parser.getRootElement(f.getAbsolutePath())); 
                    System.out.println(p); 
                } 
                catch (XMLFactoryException e) { 
                    System.err.println("Reading file " + f.getPath()); 
                    e.printStackTrace(); 
                } 
            } 
        } 
        */ 
        File f = new File(XML_FILE_LOCATION); 
        if (f.isFile() && f.getName().endsWith(XML_SUFFIX)) { 
            try { 
       XMLParser parser = new XMLParser(); 
       SimulationXMLFactory factory = new SimulationXMLFactory("Simulation"); 
       File f = new File(xmlFileLocation); 
       if (f.isFile() && f.getName().endsWith(XML_SUFFIX)) { 
           try { 
9/29/16 2:19 PM Powered by CodePro Server