currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theO2AirConcentrationSensors, myCrewEnvironment));  fileoutput += currentSensor.getValue()+"   ";  currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theCO2AirConcentrationSensors, myCrewEnvironment));  fileoutput += currentSensor.getValue()+"   ";
	public Map classifyState(StateMap instate) {		int i;		Map state = new TreeMap();		Map thisSet;		GenericSensor currentSensor;		String fileoutput;		DirtyWaterStore myDirtyWaterStore = (DirtyWaterStore)myBioHolder.theDirtyWaterStores.get(0);		PotableWaterStore myPotableWaterStore = (PotableWaterStore)myBioHolder.thePotableWaterStores.get(0);		GreyWaterStore myGreyWaterStore = (GreyWaterStore)myBioHolder.theGreyWaterStores.get(0);		O2Store myO2Store = (O2Store)myBioHolder.theO2Stores.get(0);		CO2Store myCO2Store = (CO2Store)myBioHolder.theCO2Stores.get(0);		H2Store myH2Store = (H2Store)myBioHolder.theH2Stores.get(0);		fileoutput = myBioDriver.getTicks()+"   ";		for (i =0;i<stateNames.length;i++) {			thisSet = (Map)ThresholdMap.get(stateNames[i]);			fileoutput += instate.getStateValue(stateNames[i]) + "   ";			if (instate.getStateValue(stateNames[i])< ((Integer)thisSet.get("low")).intValue())				state.put(stateNames[i], "low");			else if (instate.getStateValue(stateNames[i]) > ((Integer)thisSet.get("high")).intValue())				state.put(stateNames[i], "high");			else state.put(stateNames[i], "normal");		}				SimEnvironment myCrewEnvironment = (SimEnvironment)myBioHolder.theSimEnvironments.get(0);		SimEnvironment myPlantEnvironment = (SimEnvironment)myBioHolder.theSimEnvironments.get(1);		BiomassStore myBiomassStore = (BiomassStore)myBioHolder.theBiomassStores.get(0);		FoodStore myFoodStore = (FoodStore)myBioHolder.theFoodStores.get(0);		currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theBiomassStoreLevelSensors, myBiomassStore));		fileoutput += currentSensor.getValue()+"   ";		currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theFoodStoreLevelSensors, myFoodStore));		fileoutput += currentSensor.getValue()+"   ";				currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theO2AirConcentrationSensors, myCrewEnvironment));//		System.out.println("Crew O2..."+currentSensor.getValue());		fileoutput += currentSensor.getValue()+"   ";		currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theCO2AirConcentrationSensors, myCrewEnvironment));//		System.out.println("Crew CO2..."+currentSensor.getValue());		fileoutput += currentSensor.getValue()+"   ";				currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theO2AirConcentrationSensors, myCrewEnvironment));//		System.out.println("Crew O2..."+currentSensor.getValue());		fileoutput += currentSensor.getValue()+"   ";		currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theCO2AirConcentrationSensors, myCrewEnvironment));//		System.out.println("Crew CO2..."+currentSensor.getValue());		fileoutput += currentSensor.getValue()+"   ";		currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theWaterAirConcentrationSensors, myCrewEnvironment));//		System.out.println("Crew Water Vapor..."+currentSensor.getValue());		fileoutput += currentSensor.getValue()+"   ";		currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theO2AirConcentrationSensors, myPlantEnvironment));		System.out.println("Plant O2..."+currentSensor.getValue());		fileoutput += currentSensor.getValue()+"   ";		currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theCO2AirConcentrationSensors, myPlantEnvironment));		System.out.println("Plant CO2..."+currentSensor.getValue());		fileoutput += currentSensor.getValue()+"   ";				currentSensor = (GenericSensor)(myBioHolder.getSensorAttachedTo(myBioHolder.theWaterAirConcentrationSensors, myPlantEnvironment));//		System.out.println("Plant Water Vapor..."+currentSensor.getValue());		fileoutput += currentSensor.getValue()+"   ";				pw.println(fileoutput);		return state;	}