Package fr.soleil.comete.dao.tangodao

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


                || attributeName.isEmpty()) {
            return null;
        }

        AbstractDAOFactory factory = DAOFactoryManager.getFactory(TANGO_FACTORY_CLASS);
        TangoKey tangoKey = new TangoKey();
        tangoKey.registerAttribute(scanServerName, attributeName);
        return factory.createStringImageDAO(tangoKey);
    }
View Full Code Here


            return;
        }

        attributeLabel.setText(newLabel);
        // AttributeScalarInput
        TangoKey tangoKey = new TangoKey();
        String deviceName = TangoDAOFactory.getDeviceName(newLabel);
        String entityName = TangoDAOFactory.getEntityName(newLabel);
        tangoKey.registerAttribute(deviceName, entityName);
        attributeRead.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, tangoKey);
        attributeField.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, tangoKey);
    }
View Full Code Here

        if ((containsNull(xAttributeNameList) || containsNull(yAttributeNameList))
                && containsNull(attributeNameList)) {
            return;
        }
        clearDAO();
        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);

    }
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

     *
     * @param attributeShortName the attribute short name (without device name)
     * @return The expected {@link TangoKey}
     */
    public TangoKey generateAttributeKey(String attributeShortName) {
        TangoKey key = new TangoKey();
        key.registerAttribute(getModel(), attributeShortName);
        return key;
    }
View Full Code Here

     *
     * @param attributeShortName the attribute short name (without device name)
     * @return The expected {@link TangoKey}
     */
    public TangoKey generateWriteAttributeKey(String attributeShortName) {
        TangoKey key = new TangoKey();
        key.registerWriteAttribute(getModel(), attributeShortName);
        return key;
    }
View Full Code Here

     * @param completeNames The attributes complete names (example:
     *            "tango/tangotest/1/short_scalar_ro")
     * @return The expected {@link TangoKey}
     */
    public TangoKey generateMultiAttributeKey(String... completeNames) {
        TangoKey key = new TangoKey();
        key.registerMultiEntity(completeNames);
        return key;
    }
View Full Code Here

     * @param xCompleteNames The complete names of the attributes in X
     * @param yCompleteNames The complete names of the attributes in Y
     * @return The expected {@link TangoKey}
     */
    public TangoKey generateDualAttributeKey(String[] xCompleteNames, String[] yCompleteNames) {
        TangoKey key = new TangoKey();
        key.registerDualAttributes(xCompleteNames, yCompleteNames);
        return key;
    }
View Full Code Here

     * @param propertyType the property
     * @return The expected {@link TangoKey}
     */
    public TangoKey generateAttributePropertyKey(String attributeShortName,
            AttributePropertyType propertyType) {
        TangoKey key = new TangoKey();
        key.registerAttributeProperty(getModel(), attributeShortName, propertyType);
        return key;
    }
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.