src/societal_level/CellSociety.java
public Map<CellName, List<Cell>> makeCells(SimulationData sim) {

		ArrayList<Location> validLocations = getValidLocations(sim.getDimensions());
		if (validLocations.size() == 0) {
			return null;
		}
		Map<CellName, Integer> cellNums = getCellDistribution(sim, validLocations);
		return distributeCells(cellNums, validLocations);
	}
/**
	 * Assumptions made here: -> Correct cell types have been given ->
	 * Dimensions are even (no incomplete rows)
	 * 
	 * @param sim
	 *            SimulationData object with set CellRatioMap, from which cells
	 *            must be generated. For instance, if 100 cells are expected and
	 *            the ratios given are .6 and .4, then 60 cells of the first
	 *            type and 40 cells of the second type will be created and
	 *            returned in a map
	 * 
	 * @return Map of new cells, organized by CellName
	 */
Assumptions made here: -> Correct cell types have been given ->
Dimensions are even (no incomplete rows)

@param sim
SimulationData object with set CellRatioMap, from which cells
must be generated. For instance, if 100 cells are expected and
the ratios given are .6 and .4, then 60 cells of the first
type and 40 cells of the second type will be created and
returned in a map

@return Map of new cells, organized by CellName
Assumptions made here : - > Correct cell types have been given - > Dimensions are even ( no incomplete rows ) @param sim SimulationData object with set CellRatioMap from which cells must be generated . For instance if 100 cells are expected and the ratios given are . 6 and . 4 then 60 cells of the first type and 40 cells of the second type will be created and returned in a map @return Map of new cells organized by CellName
public Map<CellName, List<Cell>> makeCells(SimulationData sim) {
		ArrayList<Location> validLocations = getValidLocations(sim.getDimensions());
		if (validLocations.size() == 0) {
			return null;
		}
		Map<CellName, Integer> cellNums = getCellDistribution(sim, validLocations);
		return distributeCells(cellNums, validLocations);
	}
public Map < CellName , List < Cell > > makeCells ( SimulationData sim ) { ArrayList < Location > validLocations = getValidLocations ( sim . getDimensions ( ) ) ; if ( validLocations . size ( ) == 0 ) { return null ; } Map < CellName , Integer > cellNums = getCellDistribution ( sim , validLocations ) ; return distributeCells ( cellNums , validLocations ) ; }
Assumptions made here: -> Correct cell types have been given ->
 Dimensions are even (no incomplete rows)
Assumptions made here : - > Correct cell types have been given - > Dimensions are even ( no incomplete rows )