package cellsociety; public class Window extends Stage { public Window(String language) public Scene makeScene(int width, int height) public static void alertNeeded(String text) public void step(double timeElapsed) public void pause() public void play() } package cellsociety; public class Grid implements Iterable { public Grid(int numRows, int numCols) public Grid(List cellList, int numRows, int numCols) public Grid(String fileName) public Iterator iterator() public String getSim() public void updateGrid() public Document writeXmlFile(String name) public Group getGridNode() public Group resetGridGroup() public void setCell(int row, int col, Cell cell) public void setCellState(int row, int col, State state) public Cell getCell(int row, int col) public int getNumRows() public int getNumCols() public List getMyCells() public Map getAboutGrid() public String toString() } } package cellsociety; public class XmlHandler { public XmlHandler() public Document readXMLFile(String s) throws IOException public Map findAboutGameFromFile(Document doc) public int[] findGridDimensionsFromFile(Document doc) public String findGridSimulationFromFile(Document doc) throws RuntimeException public List findGridFromFile(Document doc) public Document writeXmlFile(String name, Map aboutGrid, List myGrid, } package cellsociety.Simulations; public abstract class Simulation { public Simulation() public abstract String toString(); public abstract String getAbout(); public Cell[][] applyRules(Grid grid) public Grid applyRulesToGrid(Grid grid) protected abstract State setCellLogic(Cell cell, ArrayList neighbors); protected abstract ArrayList getNeighbors(Grid grid, int row, int col); protected ArrayList get4Neighbors(Grid grid, int row, int col) protected ArrayList get8Neighbors(Grid grid, int x, int y) public Cell setCellPosition(Cell cell, int r, int c, int numCols, int numRows, int gridSize) } package cellsociety.Simulations.Sub_Sims; public class SegregationSim extends Simulation { public SegregationSim() public Color getColor() public static ArrayList getStates() public Grid applyRulesToGrid(Grid grid) protected State setCellLogic(Cell cell, ArrayList neighbors) protected ArrayList getNeighbors(Grid grid, int row, int col) public void resetCounters() public String toString() public String getAbout() } } package cellsociety.Simulations.Sub_Sims; public class GameOfLife extends Simulation { public GameOfLife() public Color getColor() protected State setCellLogic(Cell cell, ArrayList neighbors) protected ArrayList getNeighbors(Grid grid, int row, int col) public String toString() public String getAbout() } } package cellsociety.Simulations.Sub_Sims; public class SpreadingOfFire extends Simulation { public SpreadingOfFire() public Color getColor() protected State setCellLogic(Cell cell, ArrayList neighbors) protected ArrayList getNeighbors(Grid grid, int row, int col) public String toString() public String getAbout() } package cellsociety.Simulations.Sub_Sims; public class PercolationSim extends Simulation { public PercolationSim() public Color getColor() protected State setCellLogic(Cell cell, ArrayList neighbors) protected ArrayList getNeighbors(Grid grid, int row, int col) public String toString() public String getAbout() } package cellsociety.Simulations.Sub_Sims; public class PredatorPreySim extends Simulation { public PredatorPreySim() public Paint getColor() protected State setCellLogic(Cell cell, ArrayList neighbors) protected ArrayList getNeighbors(Grid grid, int row, int col) public String toString() public String getAbout() } package cellsociety.Simulations; public interface State { default void update() { Paint getColor(); } package cellsociety; public class Main extends Application { public static final String DATA_FILE_FOLDER public static final Dimension DEFAULT_SIZE public void start(Stage stage) public int calculateNumBlocks(File xmlFile) public double getVersion() } package cellsociety; public class GridBuilder { public GridBuilder() public Document writeXmlFile(String name, Map aboutGrid, int numRows, } package cellsociety; public class Cell extends Rectangle { public Cell(State state, int col, int row) public State getState() public void setState(State state) public int getRow() public int getCol() public String toString() } }