src/file_handling/CellDataDecoder.java
public List<String> decodeData(String cellType) {
		if(cellType.equals(POSSIBLE_CELL_DATA[0])){
			return myGenerator.generateLocationData();
		}else if(cellType.equals(POSSIBLE_CELL_DATA[1])){
			return myGenerator.generateNumberData();
		}else if(cellType.equals(POSSIBLE_CELL_DATA[2])){
			return myGenerator.generateProbabilityData();
		}else if(cellType.equals(POSSIBLE_CELL_DATA[3])){
			return myGenerator.generatePercentageData();
		}else{
			throw new XMLException(myResources.getString("InvalidCellDataType"));
		}
	}
/**
	 * Determines how the Strings of Cell data should be used to
	 * generate data usable by a SimulationType.
	 * 
	 * @param cellType
	 */
Determines how the Strings of Cell data should be used to
generate data usable by a SimulationType.

@param cellType
Determines how the Strings of Cell data should be used to generate data usable by a SimulationType . @param cellType
public List<String> decodeData(String cellType) {
		if(cellType.equals(POSSIBLE_CELL_DATA[0])){
			return myGenerator.generateLocationData();
		}else if(cellType.equals(POSSIBLE_CELL_DATA[1])){
			return myGenerator.generateNumberData();
		}else if(cellType.equals(POSSIBLE_CELL_DATA[2])){
			return myGenerator.generateProbabilityData();
		}else if(cellType.equals(POSSIBLE_CELL_DATA[3])){
			return myGenerator.generatePercentageData();
		}else{
			throw new XMLException(myResources.getString("InvalidCellDataType"));
		}
	}
public List < String > decodeData ( String cellType ) { if ( cellType . equals ( POSSIBLE_CELL_DATA [ 0 ] ) ) { return myGenerator . generateLocationData ( ) ; } else if ( cellType . equals ( POSSIBLE_CELL_DATA [ 1 ] ) ) { return myGenerator . generateNumberData ( ) ; } else if ( cellType . equals ( POSSIBLE_CELL_DATA [ 2 ] ) ) { return myGenerator . generateProbabilityData ( ) ; } else if ( cellType . equals ( POSSIBLE_CELL_DATA [ 3 ] ) ) { return myGenerator . generatePercentageData ( ) ; } else { throw new XMLException ( myResources . getString ( "InvalidCellDataType" ) ) ; } }
Determines how the Strings of Cell data should be used to
 generate data usable by a SimulationType.
Determines how the Strings of Cell data should be used to generate data usable by a SimulationType .