myBioHolder.theO2AirConcentrationSensors, myPlantEnvironment)); myLogger.debug("Plant O2..." + currentSensor.getValue()); fileoutput.append(currentSensor.getValue()); fileoutput.append(TAB);  currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo( myBioHolder.theCO2AirConcentrationSensors, myPlantEnvironment)); myLogger.debug("Plant CO2..." + currentSensor.getValue()); fileoutput.append(currentSensor.getValue()); fileoutput.append(TAB);  currentSensor = (GenericSensor) (myBioHolder .getSensorAttachedTo( myBioHolder.theWaterAirConcentrationSensors, myPlantEnvironment)); myLogger.debug("Plant Water Vapor..." + currentSensor.getValue()); fileoutput.append(currentSensor.getValue()); fileoutput.append(TAB);  currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(
    public Map classifyState(StateMap instate) {        int i;        Map state = new TreeMap();        Map thisSet;        GenericSensor currentSensor;        StringBuffer fileoutput;        fileoutput = new StringBuffer(myBioDriver.getTicks());        fileoutput.append(TAB);        for (i = 0; i < stateNames.length; i++) {            thisSet = (Map) ThresholdMap.get(stateNames[i]);            fileoutput.append(instate.getStateValue(stateNames[i]));            fileoutput.append(TAB);            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");        }        currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(                myBioHolder.theBiomassStoreLevelSensors, myBiomassStore));        fileoutput.append(currentSensor.getValue());        fileoutput.append(TAB);        currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(                myBioHolder.theFoodStoreLevelSensors, myFoodStore));        fileoutput.append(currentSensor.getValue());        fileoutput.append(TAB);        currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(                myBioHolder.theO2AirConcentrationSensors, myCrewEnvironment));        myLogger.debug("Crew O2..." + currentSensor.getValue());        fileoutput.append(currentSensor.getValue());        fileoutput.append(TAB);        currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(                myBioHolder.theCO2AirConcentrationSensors, myCrewEnvironment));        myLogger.debug("Crew CO2..." + currentSensor.getValue());        fileoutput.append(currentSensor.getValue());        fileoutput.append(TAB);        currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(                myBioHolder.theWaterAirConcentrationSensors, myCrewEnvironment));        myLogger.debug("Crew Water Vapor..." + currentSensor.getValue());        fileoutput.append(currentSensor.getValue());        fileoutput.append(TAB);        currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(                myBioHolder.theO2AirConcentrationSensors, myPlantEnvironment));        myLogger.debug("Plant O2..." + currentSensor.getValue());        fileoutput.append(currentSensor.getValue());        fileoutput.append(TAB);        currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(                myBioHolder.theCO2AirConcentrationSensors, myPlantEnvironment));        myLogger.debug("Plant CO2..." + currentSensor.getValue());        fileoutput.append(currentSensor.getValue());        fileoutput.append(TAB);        currentSensor = (GenericSensor) (myBioHolder                .getSensorAttachedTo(                        myBioHolder.theWaterAirConcentrationSensors,                        myPlantEnvironment));        myLogger.debug("Plant Water Vapor..." + currentSensor.getValue());        fileoutput.append(currentSensor.getValue());        fileoutput.append(TAB);        currentSensor = (GenericSensor) (myBioHolder.getSensorAttachedTo(                myBioHolder.thePowerStoreLevelSensors, myPowerStore));        myLogger.info("Power..." + currentSensor.getValue());        pw.println(fileoutput);        return state;    }