IActuator[] lights = new IActuator[10];
simulation.addRoom(room);
simulation.getContext().setBrightness(5999.0D);
room.getLocalContext().setPreference("targetBrightness",
String.valueOf(targetBrightness));
controller.attachSensor(sensor);
for (int i = 0; i < 10; i++) {
lights[i] = new LightingActuator();
controller.attachActuator(lights[i]);
room.addActuator(lights[i]);
}