Package fr.soleil.salsa.comete

Examples of fr.soleil.salsa.comete.SalsaDAOFactory


    private void setDevicePreferences(DevicePreferences preferences, boolean updateView) {
        if (devicePreferences != null) {
            devicePreferences.removePreferenceListener(this);
        }
        super.setDevicePreferences(preferences);
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        factory.setModelPreferences(preferences);

        errorController.setDevicePreferences(preferences);
        startStopController.setDevicePreferences(preferences);
        shortcutsController.setDevicePreferences(preferences);
        generalShortcutsToolBarController.setDevicePreferences(preferences);
View Full Code Here


        super.setErrorController(errorController);
        if (view != null) {
            view.setErrorView(errorController == null ? null : errorController.getView());
        }
        PeriodicRefreshUpdater.getInstance().setErrorController(errorController);
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        factory.setErrorController(errorController);
        startStopController.setErrorController(errorController);
        sensorsListController.setErrorController(errorController);
        actuatorsListController.setErrorController(errorController);
        scanResultController.setErrorController(errorController);
        historicController.setErrorController(errorController);
View Full Code Here

    private void setDevicePreferences(DevicePreferences preferences, boolean updateView) {
        if (devicePreferences != null) {
            devicePreferences.removePreferenceListener(this);
        }
        super.setDevicePreferences(preferences);
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        factory.setModelPreferences(preferences);

        errorController.setDevicePreferences(preferences);
        startStopController.setDevicePreferences(preferences);
        shortcutsController.setDevicePreferences(preferences);
        generalShortcutsToolBarController.setDevicePreferences(preferences);
View Full Code Here

     */
    public ApplicationController() throws Exception {
        super(new ErrorController());

        PeriodicRefreshUpdater.getInstance().setErrorController(errorController);
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        factory.setErrorController(errorController);
        startStopController = new StartStopController(this);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorListController(null, errorController);
        actuatorsListController = new ActuatorListController(null, errorController);
View Full Code Here

    @Override
    protected void initBeforeSetView() {
        super.initBeforeSetView();
        PeriodicRefreshUpdater.getInstance().setErrorController(errorController);
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        factory.setErrorController(errorController);
        startStopController = new StartStopController(this, errorController);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorListController(null, errorController);
        actuatorsListController = new ActuatorListController(null, errorController);
View Full Code Here

        super.setErrorController(errorController);
        if (view != null) {
            view.setErrorView(errorController == null ? null : errorController.getView());
        }
        PeriodicRefreshUpdater.getInstance().setErrorController(errorController);
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        factory.setErrorController(errorController);
        startStopController.setErrorController(errorController);
        sensorsListController.setErrorController(errorController);
        actuatorsListController.setErrorController(errorController);
        scanResultController.setErrorController(errorController);
        historicController.setErrorController(errorController);
View Full Code Here

        final boolean isScanConfig = sameConfig(config, scanConfig);

        String factoryClassName = SalsaDAOFactory.class.getName();
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
        SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

        AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
        AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                .createNumberDataArrayDAO(scanResult1DKey);
        ScanResult1DDAO scanResult1DDAO = (ScanResult1DDAO) dataArrayDao;

        scanResult1DDAO.setXAxisComponent(xAxisComponent);
        List<String> yAxisComponents = new ArrayList<String>(y1AxisComponents.size()
View Full Code Here

    @Override
    public void notify2DAxisValuesChange(String xAxisComponent, String yAxisComponent,
            String zAxisComponent, List<Axis> axisList) {
        String factoryClassName = SalsaDAOFactory.class.getName();
        AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
        SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

        AbstractKey scanResult2DKey = new ScanResult2DKey(factoryClassName);
        AbstractDAO<NumberMatrix> numberMatrix = salsaDAOFactory
                .createNumberImageDAO(scanResult2DKey);
        ScanResult2DDAO scanResult2DDAO = (ScanResult2DDAO) numberMatrix;

        scanResult2DDAO.setXAxisComponent(xAxisComponent);
        scanResult2DDAO.setYAxisComponent(yAxisComponent);
View Full Code Here

     */
    public ApplicationController() throws Exception {
        super(new ErrorController());

        PeriodicRefreshUpdater.getInstance().setErrorController(errorController);
        SalsaDAOFactory factory = (SalsaDAOFactory) DAOFactoryManager
                .registerFactory(SalsaDAOFactory.class.getName());
        factory.setErrorController(errorController);
        startStopController = new StartStopController(this);
        shortcutsController = new ShortcutsController(this);
        generalShortcutsToolBarController = new GeneralShortcutsToolBarController();
        sensorsListController = new SensorsListController(null, errorController);
        actuatorsListController = new ActuatorsListController(errorController);
View Full Code Here

        boolean isScanConfig = sameConfig(config, scanConfig);

        if (isScanConfig || (!scanRunning)) {
            String factoryClassName = SalsaDAOFactory.class.getName();
            AbstractDAOFactory factory = DAOFactoryManager.registerFactory(factoryClassName);
            SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

            AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
            AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                    .createNumberDataArrayDAO(scanResult1DKey);
            ScanResult1DDAO scanResult1DDAO = (ScanResult1DDAO) dataArrayDao;

            scanResult1DDAO.setXAxisComponent(xAxisComponent);
            List<String> yAxisComponents = new ArrayList<String>(y1AxisComponents.size()
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.comete.SalsaDAOFactory

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.