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

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


                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }

                    Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel
                            .getDimensionX();
                    dimension2DXModel.addListener(listenerDimension2DX);

                    Dimension2DYModel dimension2DYModel = (Dimension2DYModel) config2DModel
                            .getDimensionY();
                    dimension2DYModel.addListener(listenerDimension2DY);

                    for (IActuator actuator : dimension2DXModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }

                    for (IActuator actuator : dimension2DYModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }

                    for (IRange2DX range2DX : dimension2DXModel.getRangesList()) {
                        ((Range2DXModel) range2DX).addListener(listenerRange2DX);
                        for (ITrajectory trajectory : range2DX.getTrajectoriesList()) {
                            ((Trajectory2DXModel) trajectory).addListener(listenerTrajectory2DX);
                        }
                    }
View Full Code Here


                    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);
                    }

                    for (IActuator actuator : dimension2DYModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).removeListener(listenerActuator);
                    }

                    for (IRange2DX range2DX : dimension2DXModel.getRangesList()) {
                        ((Range2DXModel) range2DX).removeListener(listenerRange2DX);
                        for (ITrajectory trajectory : range2DX.getTrajectoriesList()) {
                            ((Trajectory2DXModel) trajectory).removeListener(listenerTrajectory2DX);
                        }
                    }
View Full Code Here

            stopListening();

            Config2DModel config2DModel = (Config2DModel) config;
            config2DModel.addListener(listenerConfig2D);

            Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel.getDimensionX();
            dimension2DXModel.addListener(listenerDimension2DX);

            for (IActuator actuator : dimension2DXModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }

            for (IRange2DX range2DX : dimension2DXModel.getRangesList()) {
                ((Range2DXModel) range2DX).addListener(listenerRange2DX);
                for (ITrajectory trajectory : range2DX.getTrajectoriesList()) {
                    ((Trajectory2DXModel) trajectory).addListener(listenerTrajectory2DX);
                }
            }
View Full Code Here

    public void stopListening() {
        if (config != null) {
            Config2DModel config2DModel = (Config2DModel) config;
            config2DModel.removeListener(listenerConfig2D);

            Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel.getDimensionX();
            dimension2DXModel.removeListener(listenerDimension2DX);

            for (IActuator actuator : dimension2DXModel.getActuatorsList()) {
                ((ActuatorModel) actuator).removeListener(listenerActuator);
            }

            for (IRange2DX range2DX : dimension2DXModel.getRangesList()) {
                ((Range2DXModel) range2DX).removeListener(listenerRange2DX);
                for (ITrajectory trajectory : range2DX.getTrajectoriesList()) {
                    ((Trajectory2DXModel) trajectory).removeListener(listenerTrajectory2DX);
                }
            }
View Full Code Here

               
                for(ISensor sensor : config.getSensorsList()) {
                    ((SensorModel) sensor).addListener(listenerSensor);
                }
               
                Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel.getDimensionX();
                dimension2DXModel.addListener(listenerDimension2DX);
               
                Dimension2DYModel dimension2DYModel = (Dimension2DYModel) config2DModel.getDimensionY();
                dimension2DYModel.addListener(listenerDimension2DY);

                for(IActuator actuator : dimension2DXModel.getActuatorsList()) {
                    ((ActuatorModel) actuator).addListener(listenerActuator);
                }
               
                for(IActuator actuator : dimension2DYModel.getActuatorsList()) {
                    ((ActuatorModel) actuator).addListener(listenerActuator);
                }

               
                for(IRange2DX range2DX : dimension2DXModel.getRangesList()) {
                    ((Range2DXModel) range2DX).addListener(listenerRange2DX);
                    for(ITrajectory trajectory : range2DX.getTrajectoriesList()) {
                        ((Trajectory2DXModel) trajectory).addListener(listenerTrajectory2DX);
                    }
                }
View Full Code Here

                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);
                }
               
                for(IActuator actuator : dimension2DYModel.getActuatorsList()) {
                    ((ActuatorModel) actuator).removeListener(listenerActuator);
                }
               
                for(IRange2DX range2DX : dimension2DXModel.getRangesList()) {
                    ((Range2DXModel) range2DX).removeListener(listenerRange2DX);
                    for(ITrajectory trajectory : range2DX.getTrajectoriesList()) {
                        ((Trajectory2DXModel) trajectory).removeListener(listenerTrajectory2DX);
                    }
                }
View Full Code Here

            stopListening();

            Config2DModel config2DModel = (Config2DModel) config;
            config2DModel.addListener(listenerConfig2D);

            Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel.getDimensionX();
            dimension2DXModel.addListener(listenerDimension2DX);

            for (IActuator actuator : dimension2DXModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }

            for (IRange2DX range2DX : dimension2DXModel.getRangesList()) {
                ((Range2DXModel) range2DX).addListener(listenerRange2DX);
                for (ITrajectory trajectory : range2DX.getTrajectoriesList()) {
                    ((Trajectory2DXModel) trajectory).addListener(listenerTrajectory2DX);
                }
            }
View Full Code Here

    public void stopListening() {
        if (config != null) {
            Config2DModel config2DModel = (Config2DModel) config;
            config2DModel.removeListener(listenerConfig2D);

            Dimension2DXModel dimension2DXModel = (Dimension2DXModel) config2DModel.getDimensionX();
            dimension2DXModel.removeListener(listenerDimension2DX);

            for (IActuator actuator : dimension2DXModel.getActuatorsList()) {
                ((ActuatorModel) actuator).removeListener(listenerActuator);
            }

            for (IRange2DX range2DX : dimension2DXModel.getRangesList()) {
                ((Range2DXModel) range2DX).removeListener(listenerRange2DX);
                for (ITrajectory trajectory : range2DX.getTrajectoriesList()) {
                    ((Trajectory2DXModel) trajectory).removeListener(listenerTrajectory2DX);
                }
            }
View Full Code Here

TOP

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

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.