public void stopListening() {
if (config != null) {
Config1DModel configModel = (Config1DModel) config;
configModel.removeListener(listenerConfig1D);
Dimension1DModel dimension1DModel = (Dimension1DModel) configModel.getDimensionX();
dimension1DModel.removeListener(listenerDimension1D);
for (IActuator actuator : dimension1DModel.getActuatorsList()) {
((ActuatorModel) actuator).removeListener(listenerActuator);
}
for (IRange1D range1D : dimension1DModel.getRangesXList()) {
((Range1DModel) range1D).removeListener(listenerRange1D);