Package fr.soleil.comete.dao.tangodao

Examples of fr.soleil.comete.dao.tangodao.TangoKey


        while (keyIterator.hasNext()) {

            String key = keyIterator.next();
            Label label = labelMap.get(key);

            TangoKey tangoKey = new TangoKey();
            tangoKey.registerAttribute(scanServerName, key);
            label.addKey(TangoDAOFactory.class.getName(), tangoKey);
        }

        // Progress bar
        TangoKey deadTimeKey = new TangoKey();
        deadTimeKey.registerAttribute(scanServerName, DEAD_TIME_PERCENT);
        scanDeadTime.addKey(TangoDAOFactory.class.getName(), deadTimeKey);

        TangoKey progressKey = new TangoKey();
        progressKey.registerAttribute(scanServerName, SCAN_COMPLETION);
        scanCompletion.addKey(TangoDAOFactory.class.getName(), progressKey);

    }
View Full Code Here


    public void initDAO() {
        if (containsNull(xAttributeNameList) || containsNull(yAttributeNameList)) {
            return;
        }
        clearDAO();
        TangoKey key = new TangoKey();
        fillIdMap(xAttributeNameList, yAttributeNameList);
        key.registerDualAttributes(xAttributeNameList, yAttributeNameList);
        widget.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, key);
        widget.switchDAOFactory(CurrentScanDataModel.TANGO_FACTORY_CLASS);
    }
View Full Code Here

        if ((containsNullAndEmpty(xAttributeNameList) || containsNullAndEmpty(yAttributeNameList) || xAttributeNameList.length != yAttributeNameList.length)
                && containsNullAndEmpty(attributeNameList)) {
            return;
        }
        // System.out.println("initDAO");
        TangoKey key = new TangoKey();
        fillIdMap(xAttributeNameList, yAttributeNameList);
        fillIdMap(attributeNameList);
        key.registerDualAttributes(xAttributeNameList, yAttributeNameList);
        key.registerProperty(TangoDAOFactory.ENTITYLIST_NAME, attributeNameList);
        // System.out.println(Arrays.toString(attributeNameList));
        widget.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, key);
        widget.switchDAOFactory(CurrentScanDataModel.TANGO_FACTORY_CLASS);
        setXDateFormat(xDateFormat);
View Full Code Here

            return;
        }

        Set<String> imageViewerKeys = imageViewerMap.keySet();
        Iterator<String> imageViewerIterator = imageViewerKeys.iterator();
        TangoKey imageKey = null;
        ImageViewer imageViewer = null;
        String key = null;
        while (imageViewerIterator.hasNext()) {
            key = imageViewerIterator.next();
            imageViewer = imageViewerMap.get(key);
            imageKey = new TangoKey();
            imageKey.registerAttribute(scanServerDeviceName, key);
            imageViewer.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, imageKey);
        }
    }
View Full Code Here

    private void initKey() {
        CurrentScanDataModel.getDeviceProxy(scanServerDeviceName);
        runName.removeKey(CurrentScanDataModel.TANGO_FACTORY_CLASS);
        runName.clearDAO();
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerDeviceName, CurrentScanDataModel.RUN_NAME);
        runName.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, tangoKey);
        if (started) {
            runName.switchDAOFactory(CurrentScanDataModel.TANGO_FACTORY_CLASS);
        }
    }
View Full Code Here

        while (keyIterator.hasNext()) {

            String key = keyIterator.next();
            Label label = labelMap.get(key);

            TangoKey tangoKey = new TangoKey();
            tangoKey.registerAttribute(scanServerName, key);
            label.addKey(TangoDAOFactory.class.getName(), tangoKey);
        }

        // Progress bar
        TangoKey progressKey = new TangoKey();
        progressKey.registerAttribute(scanServerName, DEAD_TIME_PERCENT);
        scanProgress.addKey(TangoDAOFactory.class.getName(), progressKey);
    }
View Full Code Here

            return;
        }

        Set<String> imageViewerKeys = imageViewerMap.keySet();
        Iterator<String> imageViewerIterator = imageViewerKeys.iterator();
        TangoKey imageKey = null;
        ImageViewer imageViewer = null;
        String key = null;
        while (imageViewerIterator.hasNext()) {
            key = imageViewerIterator.next();
            imageViewer = imageViewerMap.get(key);
            imageKey = new TangoKey();
            imageKey.registerAttribute(scanServerDeviceName, key);
            imageViewer.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, imageKey);
        }
    }
View Full Code Here

    public void initDAO() {
        if (containsNull(xAttributeNameList) || containsNull(yAttributeNameList)) {
            return;
        }
        clearDAO();
        TangoKey key = new TangoKey();
        fillIdMap(xAttributeNameList, yAttributeNameList);
        key.registerDualAttributes(xAttributeNameList, yAttributeNameList);
        widget.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, key);
        widget.switchDAOFactory(CurrentScanDataModel.TANGO_FACTORY_CLASS);
    }
View Full Code Here

    private void initKey() {
        CurrentScanDataModel.getDeviceProxy(scanServerDeviceName);
        runName.removeKey(CurrentScanDataModel.TANGO_FACTORY_CLASS);
        runName.clearDAO();
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerDeviceName, CurrentScanDataModel.RUN_NAME);
        runName.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, tangoKey);
        if (started) {
            runName.switchDAOFactory(CurrentScanDataModel.TANGO_FACTORY_CLASS);
        }
    }
View Full Code Here

        if (scanServerName == null || scanServerName.isEmpty()) {
            return null;
        }

        AbstractDAOFactory factory = DAOFactoryManager.getFactory(TANGO_FACTORY_CLASS);
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerName, "State");
        if (factory != null) {
            return factory.createStringDAO(tangoKey);
        }
        return null;
View Full Code Here

TOP

Related Classes of fr.soleil.comete.dao.tangodao.TangoKey

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.