src/XML/XMLReader.java
//method to assign defaut values to any simulation in case a file is incomplete
method to assign defaut values to any simulation in case a file is incomplete
method to assign defaut values to any simulation in case a file is incomplete
private void createDefaultValues() {
		System.out.println("blah");
		aliveColor = Color.BLACK;
		deadColor=Color.WHITE;		
		percentDead = 20.0;
		lifeGrid ="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1";
		burntColor=Color.YELLOW;
		burningColor=Color.RED;
		treeColor=Color.GREEN;
		probCatch=0.5;
		fireGrid ="1 1 1 1 2 2 1 1 1 1 1 1 1 1 2 2 2 2 2 1 1 1 1 2 2 2 1";
		aColor=Color.BLUE;
		bColor=Color.RED;
		neutralColor=Color.WHITE;		
		segGrid = "0 1 0 1 2 1 0 0 2 0 1 0 2 2 1 0 0 1 0 2 0 0 0 0 0 0 1";
		predColor=Color.GREEN;
		preyColor=Color.PURPLE;
		waterColor=Color.RED;
		preyProduction=5;
		predEnergy = 2;
		energyGain=2;
		predReproduction=2;
		predGrid="0 1 0 1 2 1 0 0 2 0 1 0 2 2 1 0 0 1 0 2 1 1 1 1 1 1 1 1 1 0 1 2 1 2 2 2 0 1 0 2 2 1 0 0 1 0 2 0 0 0 0 0 0 1 0 1 0 1 2 1 0 0 2 0 1 0 2 2 1 0 0 1 0 2 0 0 0 0 0 0 1 0 1 0 1 2 1 0 0 2 0 1 0 2 2 1 0 0 1 0 2 0 0 0 0 0 0 1";
		colorOne = 255;
		colorTwo = 255;
		colorThree = 255;
		growthRate = 5;
		growthInterval = 1;
		sugarGrid = "5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 10 10 10 10 10 10 10 5  5\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 20 20 20 20 20 10 5\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 20 50 50 20 20 20 20 10\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 50 100 100 50 20 20 20 10\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 50 100 100 50 20 20 20 10\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 20 50 50 20 20 20 20 10\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 20 20 20 20 20 10 5\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 10 10 10 10 10 10 10 5  5\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  5  5  5  5  5  5  10 10 10 10 10 10 10 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  5  5  10 10 10 20 20 20 20 20 20 20 20 10 10 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  10 10 20 20 20 20 50 50 20 20 20 20 10 10 10 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  10 20 20 20 50 50 50 100 100 50 50 20 20 20 10  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  10 20 20 20 50 100 100 100 100 50 20 20 20 10  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  10 20 20 20 20 50 100 100 50 20 20 20 20 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  5  10 20 20 20 20 20 20 20 20 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + 
				"			  5  5  10 10 10 10 10 10 10 10 5  5";
		bacteriaGrid = "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1";
		colorA = Color.RED;
		colorB = Color.BLUE;
		colorC = Color.YELLOW;
		defaultColor = Color.BLACK;
	}
private void createDefaultValues ( ) { System . out . println ( "blah" ) ; aliveColor = Color . BLACK ; deadColor = Color . WHITE ; percentDead = 20.0 ; lifeGrid = "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1" ; burntColor = Color . YELLOW ; burningColor = Color . RED ; treeColor = Color . GREEN ; probCatch = 0.5 ; fireGrid = "1 1 1 1 2 2 1 1 1 1 1 1 1 1 2 2 2 2 2 1 1 1 1 2 2 2 1" ; aColor = Color . BLUE ; bColor = Color . RED ; neutralColor = Color . WHITE ; segGrid = "0 1 0 1 2 1 0 0 2 0 1 0 2 2 1 0 0 1 0 2 0 0 0 0 0 0 1" ; predColor = Color . GREEN ; preyColor = Color . PURPLE ; waterColor = Color . RED ; preyProduction = 5 ; predEnergy = 2 ; energyGain = 2 ; predReproduction = 2 ; predGrid = "0 1 0 1 2 1 0 0 2 0 1 0 2 2 1 0 0 1 0 2 1 1 1 1 1 1 1 1 1 0 1 2 1 2 2 2 0 1 0 2 2 1 0 0 1 0 2 0 0 0 0 0 0 1 0 1 0 1 2 1 0 0 2 0 1 0 2 2 1 0 0 1 0 2 0 0 0 0 0 0 1 0 1 0 1 2 1 0 0 2 0 1 0 2 2 1 0 0 1 0 2 0 0 0 0 0 0 1" ; colorOne = 255 ; colorTwo = 255 ; colorThree = 255 ; growthRate = 5 ; growthInterval = 1 ; sugarGrid = "5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 10 10 10 10 10 10 10 5  5\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 20 20 20 20 20 10 5\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 20 50 50 20 20 20 20 10\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 50 100 100 50 20 20 20 10\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 50 100 100 50 20 20 20 10\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 20 50 50 20 20 20 20 10\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 20 20 20 20 20 20 20 20 10 5\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  10 10 10 10 10 10 10 10 5  5\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  5  5  5  5  5  5  10 10 10 10 10 10 10 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  5  5  10 10 10 20 20 20 20 20 20 20 20 10 10 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  10 10 20 20 20 20 50 50 20 20 20 20 10 10 10 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  10 20 20 20 50 50 50 100 100 50 50 20 20 20 10  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  10 20 20 20 50 100 100 100 100 50 20 20 20 10  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  10 20 20 20 20 50 100 100 50 20 20 20 20 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  5  10 20 20 20 20 20 20 20 20 10 5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5  5\n" + "			  5  5  10 10 10 10 10 10 10 10 5  5" ; bacteriaGrid = "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1" ; colorA = Color . RED ; colorB = Color . BLUE ; colorC = Color . YELLOW ; defaultColor = Color . BLACK ; }
method to assign defaut values to any simulation in case a file is incomplete
method to assign defaut values to any simulation in case a file is incomplete