} else { myLogger.error("SolarPowerPS: no light input!"); return randomFilter(0);
    float calculatePowerProduced() {        SimEnvironment lightInput = getLightConsumerDefinition()                .getEnvironments()[0];        //Varying stream of power        if (lightInput != null) {            float powerGenerated = getCurrentUpperPowerGeneration()                    * (lightInput.getLightIntensity() / lightInput                            .getMaxLumens());            return randomFilter(powerGenerated);        } else {            myLogger.error("SolarPowerPS: no light input!");            return randomFilter(0);        }    }