Number Lines: 2051 total Classes: 34 Abstract: 5 Subclasses: 26 Interfaces: 2 Interfaces Used: 5 Use of static ./src/cellsociety_team11/gui/XMLFileChooser.java: * Might end up making static since FileChooser is non-extendable ./src/xml/parser/XMLParser.java: private static DocumentBuilder getDocumentBuilder () { Global instance variables Non-private instance variables ./src/cellsociety_team11/Cell.java: protected Grid grid; ./src/cellsociety_team11/Cell.java: protected Coordinates coordinates; ./src/cellsociety_team11/Grid.java: protected Cell [][] gridMatrix; ./src/cellsociety_team11/Grid.java: protected int height; ./src/cellsociety_team11/Grid.java: protected int width; ./src/cellsociety_team11/gui/DisplayCell.java: protected T currentValue; ./src/cellsociety_team11/gui/DisplayCell.java: protected Coordinates coordinates; ./src/cellsociety_team11/gui/DisplayCell.java: protected Shape cellShape; Magic values ./src/cellsociety_team11/CellSocietyController.java: if (simulationTypeStr.equals("Game of Life")) { ./src/cellsociety_team11/CellSocietyController.java: if (simulationTypeStr.equals("Segregation")) { ./src/cellsociety_team11/CellSocietyController.java: if (simulationTypeStr.equals("Spreading of Fire")) { ./src/cellsociety_team11/CellSocietyController.java: if (simulationTypeStr.equals("Predator Prey")) { ./src/cellsociety_team11/game_of_life/GameOfLifeRules.java: if(currentValue && lifeCount > 1 && lifeCount < 4) { ./src/cellsociety_team11/game_of_life/GameOfLifeRules.java: if(!currentValue && lifeCount == 3) { ./src/xml/factory/SimulationXMLFactory.java: if (name.equals("Predator Prey")) { ./src/xml/factory/SimulationXMLFactory.java: } if (name.equals("Segregation") || name.equals("Spreading of Fire")) { ./src/xml/main/Main.java: if (model.getSimulationName().equals("Game of Life")){ Use of Concrete List Use of Concrete Map Use of Concrete Set ./src/cellsociety_team11/Cell.java: public abstract HashSet getNeighbors(); ./src/cellsociety_team11/game_of_life/GameOfLifeCell.java: public HashSet getNeighbors() { ./src/cellsociety_team11/predator_prey/PredatorPreyCell.java: public HashSet getNeighbors() { ./src/cellsociety_team11/segregation/SegregationCell.java: public HashSet getNeighbors() { ./src/cellsociety_team11/spreading_of_fire/SpreadingOfFireCell.java: public HashSet getNeighbors() { Longest Methods 21 PredatorPreyRules.movePredator 20 SimulationXMLFactory.getSimulation 17 SpreadingOfFireCell.SpreadingOfFireCell 17 GameOfLifeCell.GameOfLifeCell 16 PredatorPreyGrid.setTimers 16 PredatorPreyCell.PredatorPreyCell 15 SegregationRules.fillRandomEmptyCell 14 SegregationCell.SegregationCell 14 PredatorPreyRules.swap 12 CellSocietyController.readFileData Bad Exception Handling ./src/cellsociety_team11/CellSocietyController.java: e.printStackTrace(); ./src/xml/main/Main.java: e.printStackTrace(); ./src/xml/main/Main.java: e.printStackTrace();