LightState[] ls = new LightState[tl.getReadCurrentStateQuery().get().lightStates.length];
for(int i=0; i<tl.getReadCurrentStateQuery().get().lightStates.length; i++){
ls[i]=LightState.RED;
}
TLState tls = new TLState(ls);
ChangeLightsStateQuery q = tl.getChangeLightsStateQuery();
q.setValue(tls);
q.run();
}
} catch (IOException ex) {
Logger.getLogger(FuzzyTesterView.class.getName()).log(Level.SEVERE, null, ex);