Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.IScanAddOns


                // Set the Y trajectories
                initTrajectories(2, dimensionY, actuatorList2);
            }

            // ScanAddOn
            IScanAddOns scanAddOns = newConfig.getScanAddOn();
            if (scanAddOns == null) {
                scanAddOns = new ScanAddOnImp();
            }

            IErrorStrategy errorStrategy = scanAddOns.getErrorStrategy();
            String contextValidation = CurrentConfigurationParser.readContextValidation(scanServer);
            if (contextValidation != null && !contextValidation.isEmpty()) {
                errorStrategy.setContextValidationDevice(contextValidation);
                int strategy = CurrentConfigurationParser.readErrorStrategy(scanServer,
                        CurrentScanDataModel.CONTEXT_VALIDATION);
View Full Code Here


            // Timebases
            List<ITimebase> timebases = currentConfig.getTimebaseList();
            timeBasePanel.setDeviceList(timebases);
            tabbedPane.setEnabledAt(3, (timebases != null && !timebases.isEmpty()));

            IScanAddOns scanAddOns = currentConfig.getScanAddOn();
            boolean hookExist = (scanAddOns != null && scanAddOns.getHooks() != null && !scanAddOns
                    .getHooks().isEmpty());
            tabbedPane.setEnabledAt(6, hookExist);

            errorStrategyController.setConfig(currentConfig);
            generalController.setConfig(currentConfig);
View Full Code Here

        }
    }

    private IPostScanBehaviour getPostScanBehaviour(IConfig<?> aconfig) {
        IPostScanBehaviour postScanBehaviour = null;
        IScanAddOns addOn = getScanAddOn(aconfig);
        if (addOn != null) {
            postScanBehaviour = addOn.getPostScanBehaviour();
        }
        return postScanBehaviour;
    }
View Full Code Here

        this.config = config;
        if (config.getScanAddOn() == null) {
            config.setScanAddOn(new ScanAddOnModel());
        }
        IScanAddOns scanAddOns = config.getScanAddOn();

        if (scanAddOns.getHooks() == null) {
            scanAddOns.setHooks(new ListModel<IHook, ScanAddOnModel>(new ArrayList<IHook>(),
                    ((ScanAddOnModel) scanAddOns), "hooksList"));
        }
        this.hooks = scanAddOns.getHooks();

        hooksActionListener = new MultiActionListener<IHook>();
        hookCommandsActionListener = new MultiActionListener<IHookCommand>();
        scanAddOnActionListener = new MultiActionListener<IScanAddOns>();
View Full Code Here

        }
        return postScanBehaviour;
    }

    private IScanAddOns getScanAddOn(IConfig<?> aconfig) {
        IScanAddOns addOn = null;
        if (aconfig != null) {
            addOn = aconfig.getScanAddOn();
        }
        return addOn;
    }
View Full Code Here

        return this.baseBean.getScanAddOn();
    }

    @Override
    public void setScanAddOn(IScanAddOns scanAddOn) {
        IScanAddOns oldValue = this.baseBean.getScanAddOn();
        this.baseBean.setScanAddOn(scanAddOn);
        this.firePropertyChange("scanAddOn", oldValue, scanAddOn);
        setModified(true);
    }
View Full Code Here

                List<ITimebase> timeBaseList = getTimebaseList();
                List<ITimebase> timeBaseListModel = convertTimeBaseListToModel(timeBaseList);
                model.setTimebaseList(timeBaseListModel);

                IScanAddOns scanAddOnIm = getScanAddOn();
                if (scanAddOnIm != null) {
                    model.setScanAddOn(scanAddOnIm.toModel());
                }
            }
        }
        return model;
    }
View Full Code Here

    private IDisplay getDisplay() {
        if (config == null) {
            return null;
        }

        IScanAddOns scanAddOn = config.getScanAddOn();
        if (scanAddOn == null) {
            return null;
        }

        return scanAddOn.getDisplay();
    }
View Full Code Here

            }
            display.setAxisList(axisList);
        }

        if (config != null) {
            IScanAddOns scanAddOns = config.getScanAddOn();
            if (scanAddOns != null) {
                scanAddOns.setDisplay(display);
            }
            config.setScanAddOn(scanAddOns);
        }
    }
View Full Code Here

    private IDisplay getDisplay() {
        if (config == null) {
            return null;
        }

        IScanAddOns scanAddOn = config.getScanAddOn();
        if (scanAddOn == null) {
            return null;
        }

        return scanAddOn.getDisplay();
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.IScanAddOns

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.