int sensorIndex;
int sensorsNumber = sensorsList.size();
ISensor sensor;
for (sensorIndex = 0; sensorIndex < sensorsNumber; ++sensorIndex) {
sensor = sensorsList.get(sensorIndex);
sensorsArray[sensorIndex] = new Option(sensor, sensor.getName());
}
view.setSensorsArray(sensorsArray);
Option[] actuatorsArray = new Option[actuatorsList.size()];
int actuatorIndex;
int actuatorsNumber = actuatorsList.size();
IActuator actuator;
for (actuatorIndex = 0; actuatorIndex < actuatorsNumber; ++actuatorIndex) {
actuator = actuatorsList.get(actuatorIndex);
actuatorsArray[actuatorIndex] = new Option(actuator, actuator.getName());
}
view.setActuatorsArray(actuatorsArray);
}
else {
view.setSensorsArray(new Option[0]);