}
}
break;
case SCAN_2D:
Config2DModel config2DModel = (Config2DModel) config;
config2DModel.removeListener(listenerConfig2D);
for (ISensor sensor : config.getSensorsList()) {
((SensorModel) sensor).removeListener(listenerSensor);
}
Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel
.getDimensionX();
dimension2DXModel.removeListener(listenerDimension2DX);
Dimension2DYModel dimension2DYModel = (Dimension2DYModel) config2DModel
.getDimensionY();
dimension2DYModel.removeListener(listenerDimension2DY);
for (IActuator actuator : dimension2DXModel.getActuatorsList()) {
((ActuatorModel) actuator).removeListener(listenerActuator);