Package fr.soleil.salsa.entity.event

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


     * @param config
     */
    public void startListening(IConfig<?> config) {
        if (config != null) {
            stopListening();
            ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
            configHCSModel.addListener(listenerConfigHCS);

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

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


     * @param config
     */
    public void startListening(IConfig<?> config) {
        if (config != null) {
            stopListening();
            ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
            configHCSModel.addListener(listenerConfigHCS);

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

            for (IActuator actuator : dimensionHCSModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
View Full Code Here

     *
     * @param config
     */
    public void stopListening() {
        if (config != null) {
            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

     * @param config
     */
    public void startListening(IConfig<?> config) {
        if (config != null) {
            stopListening();
            ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
            configHCSModel.addListener(listenerConfigHCS);

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

            for (IActuator actuator : dimensionHCSModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
View Full Code Here

     *
     * @param config
     */
    public void stopListening() {
        if (config != null) {
            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

     *
     * @param config
     */
    public void stopListening() {
        if (config != null) {
            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

                    }

                    break;

                case SCAN_HCS:
                    ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
                    configHCSModel.addListener(listenerConfigHCS);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionHCSModel dimensionHCSModel = (DimensionHCSModel) configHCSModel
                            .getDimensionX();
                    dimensionHCSModel.addListener(listenerDimensionHCS);
                    for (IActuator actuator : dimensionHCSModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
View Full Code Here

                        }
                    }
                    break;

                case SCAN_HCS:
                    ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
                    configHCSModel.removeListener(listenerConfigHCS);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).removeListener(listenerSensor);
                    }
                    DimensionHCSModel dimensionHCSModel = (DimensionHCSModel) configHCSModel
                            .getDimensionX();
                    dimensionHCSModel.removeListener(listenerDimensionHCS);
                    for (IActuator actuator : dimensionHCSModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).removeListener(listenerActuator);
                    }
View Full Code Here

     * @param config
     */
    public void startListening(IConfig<?> config) {
        if (config != null) {
            stopListening();
            ConfigHCSModel configHCSModel = (ConfigHCSModel) config;
            configHCSModel.addListener(listenerConfigHCS);

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

            for (IActuator actuator : dimensionHCSModel.getActuatorsList()) {
                ((ActuatorModel) actuator).addListener(listenerActuator);
View Full Code Here

     *
     * @param config
     */
    public void stopListening() {
        if (config != null) {
            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

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

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.