}
}
break;
case SCAN_ENERGY:
ConfigEnergyModel configEnergyModel = (ConfigEnergyModel) config;
configEnergyModel.removeListener(listenerConfigEnergy);
for(ISensor sensor : config.getSensorsList()) {
((SensorModel) sensor).removeListener(listenerSensor);
}
DimensionEnergyModel dimensionEnergyModel = (DimensionEnergyModel) configEnergyModel.getDimensionEnergy();
dimensionEnergyModel.removeListener(listenerDimensionEnergy);
for(IActuator actuator : dimensionEnergyModel.getActuatorsList()) {
((ActuatorModel) actuator).removeListener(listenerActuator);
}
for(IRangeEnergy rangeEnergy : dimensionEnergyModel.getRangesEnergyList()) {