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

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


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

        ErrorStrategyItemModel esim = (ErrorStrategyItemModel) ies;
        if (listen) {
            esim.addListener(listenerErrorStrategyItem);
        }
        else {
            esim.removeListener(listenerErrorStrategyItem);
        }
    }
View Full Code Here


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

     * @param listen
     */
    private void enableListening(IErrorStrategyItem ies, boolean listen) {
        if(ies == null) {return;}
       
        ErrorStrategyItemModel esim = (ErrorStrategyItemModel) ies;
        if(listen) {
            esim.addListener(listenerErrorStrategyItem);
        } else {
            esim.removeListener(listenerErrorStrategyItem);
        }
    }
View Full Code Here

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

TOP

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

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.