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

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


    private void enableListening(IErrorStrategy ies, boolean listen) {
        if (ies == null) {
            return;
        }

        ErrorStrategyModel esm = (ErrorStrategyModel) ies;
        if (listen) {
            esm.addListener(listenerErrorStrategy);
        }
        else {
            esm.removeListener(listenerErrorStrategy);
        }
        enableListening(esm.getActuatorsErrorStrategy(), listen);
        enableListening(esm.getSensorsErrorStrategy(), listen);
        enableListening(esm.getTimebasesErrorStrategy(), listen);
        enableListening(esm.getHooksErrorStrategy(), listen);
    }
View Full Code Here


            config.setScanAddOn(new ScanAddOnModel());
        }
        scanAddOns = config.getScanAddOn();

        if (scanAddOns.getErrorStrategy() == null) {
            ErrorStrategyModel strategyModel = new ErrorStrategyModel();
            strategyModel.setActuatorsErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(strategyModel.getActuatorsErrorStrategy());
            strategyModel.setSensorsErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(strategyModel.getSensorsErrorStrategy());
            strategyModel.setHooksErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(strategyModel.getHooksErrorStrategy());
            strategyModel.setTimebasesErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(strategyModel.getTimebasesErrorStrategy());
            scanAddOns.setErrorStrategy(strategyModel);
            strategyModel.setContextValidationStrategy(ErrorStrategyType.IGNORE);
            strategyModel.setContextValidationDevice(CONTEXT_VALIDATION_ATTRIBUTE_DEFAULT);
        }
        errorStrategy = scanAddOns.getErrorStrategy();

        refresh();
View Full Code Here

     * @param listen
     */
    private void enableListening(IErrorStrategy ies, boolean listen) {
        if(ies == null) {return;}
       
        ErrorStrategyModel esm = (ErrorStrategyModel) ies;
        if(listen) {
        esm.addListener(listenerErrorStrategy);
        } else {
            esm.removeListener(listenerErrorStrategy);
        }
        enableListening(esm.getActuatorsErrorStrategy(), listen);
        enableListening(esm.getSensorsErrorStrategy(), listen);
        enableListening(esm.getTimebasesErrorStrategy(), listen);
        enableListening(esm.getHooksErrorStrategy(), listen);
    }
View Full Code Here

            config.setScanAddOn(new ScanAddOnModel());
        }
        scanAddOns = config.getScanAddOn();

        if (scanAddOns.getErrorStrategy() == null) {
            ErrorStrategyModel strategyModel = new ErrorStrategyModel();
            strategyModel.setActuatorsErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(strategyModel.getActuatorsErrorStrategy());
            strategyModel.setSensorsErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(strategyModel.getSensorsErrorStrategy());
            strategyModel.setHooksErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(strategyModel.getHooksErrorStrategy());
            strategyModel.setTimebasesErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(strategyModel.getTimebasesErrorStrategy());
            scanAddOns.setErrorStrategy(strategyModel);
            strategyModel.setContextValidationStrategy(ErrorStrategyType.IGNORE);
            strategyModel.setContextValidationDevice(CONTEXT_VALIDATION_ATTRIBUTE_DEFAULT);
        }
        errorStrategy = scanAddOns.getErrorStrategy();

        refresh();
View Full Code Here

TOP

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

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.