Examples of removeListener()


Examples of fr.soleil.salsa.entity.event.Config1DModel.removeListener()

     * Stop listening to a config and its elements.
     */
    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);
            }
View Full Code Here

Examples of fr.soleil.salsa.entity.event.Config2DModel.removeListener()

     * Stop listening to a config and its elements.
     */
    public void stopListening() {
        if (config != null) {
            Config2DModel config2DModel = (Config2DModel) config;
            config2DModel.removeListener(listenerConfig2D);

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

            for (IActuator actuator : dimension2DYModel.getActuatorsList()) {
View Full Code Here

Examples of fr.soleil.salsa.entity.event.ConfigEnergyModel.removeListener()

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

Examples of fr.soleil.salsa.entity.event.ConfigHCSModel.removeListener()

     * @param config
     */
    public void stopListening() {
        if (config != null) {
            ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
            configHCSModel.removeListener(listenerConfigHCS);

            DimensionHCSModel dimensionHCSModel = (DimensionHCSModel) configHCSModel
                    .getDimensionX();
            dimensionHCSModel.removeListener(listenerDimensionHCS);

View Full Code Here

Examples of fr.soleil.salsa.entity.event.ConfigKModel.removeListener()

                    }
                    break;

                case SCAN_K:
                    ConfigKModel configKModel = (ConfigKModel) config;
                    configKModel.removeListener(listenerConfigK);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).removeListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
View Full Code Here

Examples of fr.soleil.salsa.entity.event.Dimension1DModel.removeListener()

    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);
View Full Code Here

Examples of fr.soleil.salsa.entity.event.Dimension2DXModel.removeListener()

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

Examples of fr.soleil.salsa.entity.event.Dimension2DYModel.removeListener()

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

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

            for (IActuator actuator : dimension2DYModel.getActuatorsList()) {
                ((ActuatorModel) actuator).removeListener(listenerActuator);
            }
View Full Code Here

Examples of fr.soleil.salsa.entity.event.DimensionEnergyModel.removeListener()

                    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);
View Full Code Here

Examples of fr.soleil.salsa.entity.event.DimensionHCSModel.removeListener()

            ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
            configHCSModel.removeListener(listenerConfigHCS);

            DimensionHCSModel dimensionHCSModel = (DimensionHCSModel) configHCSModel
                    .getDimensionX();
            dimensionHCSModel.removeListener(listenerDimensionHCS);

            for (IActuator actuator : dimensionHCSModel.getActuatorsList()) {
                ((ActuatorModel) actuator).removeListener(listenerActuator);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.