Package fr.soleil.salsa.client.entity.event

Examples of fr.soleil.salsa.client.entity.event.ConfigEnergyModel


                        }
                    }
                    break;

                case SCAN_ENERGY:
                    ConfigEnergyModel configEnergyModel = (ConfigEnergyModel) config;
                    configEnergyModel.addListener(listenerConfigEnergy);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionEnergyModel dimensionEnergyModel = (DimensionEnergyModel) configEnergyModel
                            .getDimensionX();
                    dimensionEnergyModel.addListener(listenerDimensionEnergy);
                    for (IActuator actuator : dimensionEnergyModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
View Full Code Here


                        }
                    }
                    break;

                case SCAN_ENERGY:
                    ConfigEnergyModel configEnergyModel = (ConfigEnergyModel) config;
                    configEnergyModel.removeListener(listenerConfigEnergy);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).removeListener(listenerSensor);
                    }
                    DimensionEnergyModel dimensionEnergyModel = (DimensionEnergyModel) configEnergyModel
                            .getDimensionX();
                    dimensionEnergyModel.removeListener(listenerDimensionEnergy);
                    for (IActuator actuator : dimensionEnergyModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).removeListener(listenerActuator);
                    }
View Full Code Here

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

                    }
                }
                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()) {
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.entity.event.ConfigEnergyModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.