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

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


                    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);
                    }
                    for (IRangeEnergy rangeEnergy : dimensionEnergyModel.getRangesEnergyList()) {
                        ((RangeEnergyModel) rangeEnergy).addListener(listenerRangeEnergy);
                    }
                    for (ITrajectoryEnergy trajectoryEnergy : dimensionEnergyModel
                            .getTrajectoriesEnergyList()) {
                        ((TrajectoryEnergyModel) trajectoryEnergy)
                                .addListener(listenerTrajectoryEnergy);
                    }
                    break;
View Full Code Here


                    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);
                    }
                    for (IRangeEnergy rangeEnergy : dimensionEnergyModel.getRangesEnergyList()) {
                        ((RangeEnergyModel) rangeEnergy).removeListener(listenerRangeEnergy);
                    }
                    for (ITrajectoryEnergy trajectoryEnergy : dimensionEnergyModel
                            .getTrajectoriesEnergyList()) {
                        ((TrajectoryEnergyModel) trajectoryEnergy)
                                .removeListener(listenerTrajectoryEnergy);
                    }
                    break;
View Full Code Here

                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()) {
                    ((RangeEnergyModel) rangeEnergy).addListener(listenerRangeEnergy);
                }
                for(ITrajectoryEnergy trajectoryEnergy : dimensionEnergyModel.getTrajectoriesEnergyList()) {
                    ((TrajectoryEnergyModel) trajectoryEnergy).addListener(listenerTrajectoryEnergy);
                }
                break;
               
            case SCAN_K:
View Full Code Here

                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()) {
                    ((RangeEnergyModel) rangeEnergy).removeListener(listenerRangeEnergy);
                }
                for(ITrajectoryEnergy trajectoryEnergy : dimensionEnergyModel.getTrajectoriesEnergyList()) {
                    ((TrajectoryEnergyModel) trajectoryEnergy).removeListener(listenerTrajectoryEnergy);
                }
                break;
           
            case SCAN_K:
View Full Code Here

TOP

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

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.