Package fr.soleil.salsa.entity.event

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


        }
        return model;
    }

    protected IErrorStrategyItem initModel() {
        ErrorStrategyItemModel strategyModel = new ErrorStrategyItemModel(this);
        return strategyModel;
    }
View Full Code Here


                errorStrategy.setContextValidationStrategy(ErrorStrategyType.IGNORE);
                errorStrategy.setContextValidationDevice(CONTEXT_VALIDATION_ATTRIBUTE_DEFAULT);
            }

            if (errorStrategy.getActuatorsErrorStrategy() == null) {
                errorStrategy.setActuatorsErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getActuatorsErrorStrategy());
            }
            if (errorStrategy.getSensorsErrorStrategy() == null) {
                errorStrategy.setSensorsErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getSensorsErrorStrategy());
            }
            if (errorStrategy.getHooksErrorStrategy() == null) {
                errorStrategy.setHooksErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getHooksErrorStrategy());
            }

            if (errorStrategy.getTimebasesErrorStrategy() == null) {
                errorStrategy.setTimebasesErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getTimebasesErrorStrategy());
            }
            refresh();
        }
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 ies
     * @param listen
     */
    private void enableListening(IErrorStrategyItem ies, boolean listen) {
        if (ies instanceof ErrorStrategyItemModel) { // this test returns false if ies is null
            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

                errorStrategy.setContextValidationStrategy(ErrorStrategyType.IGNORE);
                errorStrategy.setContextValidationDevice(CONTEXT_VALIDATION_ATTRIBUTE_DEFAULT);
            }

            if (errorStrategy.getActuatorsErrorStrategy() == null) {
                errorStrategy.setActuatorsErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getActuatorsErrorStrategy());
            }
            if (errorStrategy.getSensorsErrorStrategy() == null) {
                errorStrategy.setSensorsErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getSensorsErrorStrategy());
            }
            if (errorStrategy.getHooksErrorStrategy() == null) {
                errorStrategy.setHooksErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getHooksErrorStrategy());
            }

            if (errorStrategy.getTimebasesErrorStrategy() == null) {
                errorStrategy.setTimebasesErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getTimebasesErrorStrategy());
            }
            refresh();
        }
        else {
View Full Code Here

    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

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

        if (errorStrategy.getTimebasesErrorStrategy() == null) {
            errorStrategy.setTimebasesErrorStrategy(new ErrorStrategyItemModel());
            setDefaultValues(errorStrategy.getTimebasesErrorStrategy());
        }

        refresh();
View Full Code Here

        }
        return model;
    }

    protected IErrorStrategyItem initModel() {
        ErrorStrategyItemModel strategyModel = new ErrorStrategyItemModel(this);
        return strategyModel;
    }
View Full Code Here

                errorStrategy.setContextValidationStrategy(ErrorStrategyType.IGNORE);
                errorStrategy.setContextValidationDevice(CONTEXT_VALIDATION_ATTRIBUTE_DEFAULT);
            }

            if (errorStrategy.getActuatorsErrorStrategy() == null) {
                errorStrategy.setActuatorsErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getActuatorsErrorStrategy());
            }
            if (errorStrategy.getSensorsErrorStrategy() == null) {
                errorStrategy.setSensorsErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getSensorsErrorStrategy());
            }
            if (errorStrategy.getHooksErrorStrategy() == null) {
                errorStrategy.setHooksErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getHooksErrorStrategy());
            }

            if (errorStrategy.getTimebasesErrorStrategy() == null) {
                errorStrategy.setTimebasesErrorStrategy(new ErrorStrategyItemModel());
                setDefaultValues(errorStrategy.getTimebasesErrorStrategy());
            }
            refresh();
        }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.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.