actuators = new GenericActuator[4];
actuators = new GenericActuator[3];
    public ActionMap() {        myLogger = Logger.getLogger(this.getClass());        Random r = new Random();        int i;        float maxrate;        myMap = new TreeMap();        boolean temp;        myBioHolder = BioHolderInitializer.getBioHolder();        WaterRS myWaterRS = (WaterRS) myBioHolder.theWaterRSModules.get(0);        AirRS myAirRS = (AirRS) myBioHolder.theAirRSModules.get(0);        OGS myOGS = (OGS) myBioHolder.theOGSModules.get(0);        actuators = new GenericActuator[4];        actuators[0] = myBioHolder.getActuatorAttachedTo(                myBioHolder.theCO2InFlowRateActuators, myAirRS);        actuators[1] = myBioHolder.getActuatorAttachedTo(                myBioHolder.thePotableWaterInFlowRateActuators, myAirRS);        actuators[2] = myBioHolder.getActuatorAttachedTo(                myBioHolder.theDirtyWaterInFlowRateActuators, myWaterRS);        actuators[3] = myBioHolder.getActuatorAttachedTo(                myBioHolder.theGreyWaterInFlowRateActuators, myWaterRS);        for (i = 0; i < actuatorNames.length; i++) {            maxrate = ((GenericActuator) actuators[i]).getMax();            temp = r.nextBoolean();            myLogger.debug(temp + "");            if (temp)                myMap.put(actuatorNames[i], new Float(10));            else                myMap.put(actuatorNames[i], new Float(0));        }        isbest = false;        if (myLogger.isDebugEnabled()) {            myLogger.debug("Selection generated by constructor");            myLogger.debug(myMap.toString());        }    }