Package fr.soleil.salsa.entity.event

Examples of fr.soleil.salsa.entity.event.Dimension1DModel


    public void setTrajectoriesList(List<ITrajectory1D> trajectories) {
        this.trajectoriesList = trajectories;
    }

    protected IDimension initModel() {
        return new Dimension1DModel(this);
    }
View Full Code Here


            stopListening();

            Config1DModel configModel = (Config1DModel) config;
            configModel.addListener(listenerConfig1D);

            Dimension1DModel dimension1DModel = (Dimension1DModel) configModel.getDimensionX();
            dimension1DModel.addListener(listenerDimension1D);
            for (IActuator actuator : dimension1DModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }
            for (IRange1D range1D : dimension1DModel.getRangesXList()) {
                ((Range1DModel) range1D).addListener(listenerRange1D);
                for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                    ((Trajectory1DModel) trajectory).addListener(listenerTrajectory1D);
                }
            }
View Full Code Here

     */
    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);
                for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                    ((Trajectory1DModel) trajectory).removeListener(listenerTrajectory1D);
                }
            }
View Full Code Here

            stopListening();

            Config1DModel configModel = (Config1DModel) config;
            configModel.addListener(listenerConfig1D);

            Dimension1DModel dimension1DModel = (Dimension1DModel) configModel.getDimensionX();
            dimension1DModel.addListener(listenerDimension1D);
            for (IActuator actuator : dimension1DModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }
            for (IRange1D range1D : dimension1DModel.getRangesXList()) {
                ((Range1DModel) range1D).addListener(listenerRange1D);
                for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                    ((Trajectory1DModel) trajectory).addListener(listenerTrajectory1D);
                }
            }
View Full Code Here

     */
    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);
                for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                    ((Trajectory1DModel) trajectory).removeListener(listenerTrajectory1D);
                }
            }
View Full Code Here

            stopListening();

            Config1DModel configModel = (Config1DModel) config;
            configModel.addListener(listenerConfig1D);

            Dimension1DModel dimension1DModel = (Dimension1DModel) configModel.getDimensionX();
            dimension1DModel.addListener(listenerDimension1D);
            for (IActuator actuator : dimension1DModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }
            for (IRange1D range1D : dimension1DModel.getRangesXList()) {
                ((Range1DModel) range1D).addListener(listenerRange1D);
                for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                    ((Trajectory1DModel) trajectory).addListener(listenerTrajectory1D);
                }
            }
View Full Code Here

     */
    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);
                for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                    ((Trajectory1DModel) trajectory).removeListener(listenerTrajectory1D);
                }
            }
View Full Code Here

                    Config1DModel configModel = (Config1DModel) config;
                    configModel.addListener(listenerConfig1D);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    Dimension1DModel dimension1DModel = (Dimension1DModel) configModel
                            .getDimensionX();
                    dimension1DModel.addListener(listenerDimension1D);
                    for (IActuator actuator : dimension1DModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
                    for (IRange1D range1D : dimension1DModel.getRangesXList()) {
                        ((Range1DModel) range1D).addListener(listenerRange1D);
                        for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                            ((Trajectory1DModel) trajectory).addListener(listenerTrajectory1D);
                        }
                    }
View Full Code Here

                    Config1DModel configModel = (Config1DModel) config;
                    configModel.removeListener(listenerConfig1D);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).removeListener(listenerSensor);
                    }
                    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);
                        for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                            ((Trajectory1DModel) trajectory).removeListener(listenerTrajectory1D);
                        }
                    }
View Full Code Here

            stopListening();

            Config1DModel configModel = (Config1DModel) config;
            configModel.addListener(listenerConfig1D);

            Dimension1DModel dimension1DModel = (Dimension1DModel) configModel.getDimensionX();
            dimension1DModel.addListener(listenerDimension1D);
            for (IActuator actuator : dimension1DModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
            }
            for (IRange1D range1D : dimension1DModel.getRangesXList()) {
                ((Range1DModel) range1D).addListener(listenerRange1D);
                for (ITrajectory trajectory : range1D.getTrajectoriesList()) {
                    ((Trajectory1DModel) trajectory).addListener(listenerTrajectory1D);
                }
            }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.event.Dimension1DModel

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.