package cellsociety_team06; public abstract class Calculator { public Calculator(String[] properties) public Calculator(String[] properties, double parameter) public double showParameter() public void resetParameter(double parameter) public abstract double calculation(List relatedCells, Cell centerCell); } package cellsociety_team06; public class Calculator_Fire extends Calculator{ public Calculator_Fire(String[] properties, double parameter) public double calculation(List relatedCells, Cell centerCell) } package cellsociety_team06; public class Calculator_Life extends Calculator{ public Calculator_Life(String[] properties) public Calculator_Life(String[] properties, double parameter) public double calculation(List relatedCells, Cell centerCell) } package cellsociety_team06; public class Calculator_Segregation extends Calculator{ public Calculator_Segregation(String[] properties) public Calculator_Segregation(String[] properties, double parameter) public double calculation(List relatedCells, Cell centerCell) } package cellsociety_team06; public class Calculator_SugarScape extends Calculator{ public Calculator_SugarScape(String[] propertys, double inputparameter) public double calculation(List relatedCells, Cell centerCell) } package cellsociety_team06; public class Calculator_Wator extends Calculator{ public Calculator_Wator(String[] propertys, double inputparameter) public double calculation(List relatedCells, Cell centerCell) } package cellsociety_team06; public abstract class Cell{ public Cell(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState) public Cell(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, double initialEnergyinput) public Cell(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, double initialEnergyinput, boolean vision) public void resetEnergy() public void setEnergy(double value) public void changeEnergy(double value) public String[] showProperties() public Color[] showColors() public abstract boolean checkTopAdjacency(Cell cell); public abstract boolean checkBotAdjacency(Cell cell); public abstract boolean checkLeftAdjacency(Cell cell); public abstract boolean checkRightAdjacency(Cell cell); public abstract boolean checkSideAdjacency(Cell cell); public abstract boolean checkDiagonalAdjacency(Cell cell); public boolean showVision() public void setVision(boolean vis) public double showEnergy() public void resetChronon() public Polygon showPolygon() public void updateChronon(double value) public double showChronon() public int showCurrentState() public String showCurrentProperty() public int showFutureState() public String showFutureProperty() public void update() public void setFutureState(int nextState) } package cellsociety_team06; public class Cell_Hexagon extends Cell{ public Cell_Hexagon(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState) public Cell_Hexagon(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, double initialEnergyInput) public Cell_Hexagon(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, double initialEnergyInput, boolean vision) public boolean checkTopAdjacency(Cell cell) public boolean checkLeftAdjacency(Cell cell) public boolean checkRightAdjacency(Cell cell) public boolean checkBotAdjacency(Cell cell) public boolean checkSideAdjacency(Cell cell) public boolean checkDiagonalAdjacency(Cell cell) } package cellsociety_team06; public class Cell_Square extends Cell{ public Cell_Square(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState) public Cell_Square(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, double initialEnergyInput) public Cell_Square(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, double initialEnergyInput, boolean vision) public boolean checkTopAdjacency(Cell cell) public boolean checkLeftAdjacency(Cell cell) public boolean checkRightAdjacency(Cell cell) public boolean checkBotAdjacency(Cell cell) public boolean checkSideAdjacency(Cell cell) public boolean checkDiagonalAdjacency(Cell cell) } package cellsociety_team06; public class Cell_Triangle extends Cell{ public Cell_Triangle(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, boolean upward) public Cell_Triangle(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, double initialEnergyInput, boolean upward) public Cell_Triangle(String cellType, double centerXLocation, double centerYLocation, double sideLength, String[] properties, Color[] colors, int initialState, double initialEnergyInput, boolean vision, boolean upward) public boolean checkTopAdjacency(Cell cell) public boolean checkBotAdjacency(Cell cell) public boolean checkRightAdjacency(Cell cell) public boolean checkLeftAdjacency(Cell cell) public boolean checkSideAdjacency(Cell cell) public boolean checkDiagonalAdjacency(Cell cell) } package cellsociety_team06; public abstract class Grid { public Grid(int rownum, int colnum, Calculator calculator) public abstract void updateCell(double prob, int centerCellRow, int centerCellCol); public void createCells(int row, int col, Cell cell) public int showRowNum() public int showColNum() public Cell[][] showMyCells() public void iterate() public boolean checkTerminate() public void resetSugarInterval(int newinterval) public void resetSugarMetabolism(int newmata) public void resetEnergyGain(double newenergygain) } package cellsociety_team06; public class Grid_Fire extends Grid{ public Grid_Fire(int rownum, int colnum, Calculator myCalculator) public void updateCell(double prob, int centerCellRow, int centerCellCol) } package cellsociety_team06; public class Grid_Life extends Grid{ public Grid_Life(int rownum, int colnum, Calculator myCalculator) public void updateCell(double prob, int centerCellRow, int centerCellCol) } package cellsociety_team06; public class Grid_Segregation extends Grid{ public Grid_Segregation(int rownum, int column, Calculator myCalculator) public void updateCell(double prob, int centerCellRow, int centerCellCol) } package cellsociety_team06; public class Grid_SugarScape extends Grid{ public Grid_SugarScape(int rownum, int colnum, Calculator myCalculator) public Grid_SugarScape(int rownum, int colnum, Calculator myCalculator, int sugarinterval, double sugarmeta) public void updateCell(double prob, int centerCellRow, int centerCellCol) public void update() public void resetSugarInterval(int newInterval) public void resetSugarMetabolism(int newSugarMeta) } package cellsociety_team06; public class Grid_Wator extends Grid{ public Grid_Wator(int rownum, int colnum, Calculator myCalculator) public Grid_Wator(int rownum, int colnum, Calculator myCalculator, double parameter) public void updateCell(double prob, int centerCellRow, int centerCellCol) public void resetEnergyGain(double newEnergyGain) } package cellsociety_team06; public class Launcher extends Application{ public void start(Stage primaryStage) throws Exception } package cellsociety_team06; public abstract class Simulation{ public Simulation(XMLReader reader, Group sceneroot) public void gridGenerator() public Calculator getCalc() public Grid getGrid() } package cellsociety_team06; public class Simulation_Hexagon extends Simulation{ public Simulation_Hexagon(XMLReader reader, Group sceneroot) } package cellsociety_team06; public class Simulation_Square extends Simulation{ public Simulation_Square(XMLReader reader, Group sceneroot) } package cellsociety_team06; public class Simulation_Triangle extends Simulation{ public Simulation_Triangle(XMLReader reader, Group sceneroot) } package cellsociety_team06; public class XMLcreator { public XMLcreator(String filepath, Grid grid) public void saveState() throws TransformerException, ParserConfigurationException, SAXException } package cellsociety_team06; public class XMLReader { public XMLReader(String filename) public void read() throws ParserConfigurationException, SAXException, IOException public String getSimType() public List showbasicInfo() public List showglobalSettings() public List showgridParameters() public List showcellParameters() public List showcalculatorParameters() public List showgridConfig() public List showmyPercentages() public int[][] showmyEnergy() public int[][] showmyCells() }