Package fr.soleil.comete.dao.tangodao

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


    // CURRENT
    setWidgetModel( this.builder.getCurrentViewer(), generateAttributeKey("current"));

    // CURRENT TIME TREND
    TangoKey valueKey = generateAttributeKey(SPECTRUM_ATTRIBUTE);
    TangoKey timeKey = generateAttributeKey(TIME_ATTRIBUTE);
    TangoKey modeKey = generateAttributeKey(FUNC_MODE_SPECTRUM_ATTRIBUTE);
    TangoKey maxTrendKey = generateAttributeKey(MAXTREND_ATTRIBUTE);
    TangoKey tickSpacingKey = generateAttributeKey(TICKSPACING_ATTRIBUTE);

    // UNIT
    TangoKey unitKey = generateAttributePropertyKey(SPECTRUM_ATTRIBUTE, AttributePropertyType.UNIT);
    AbstractDAO<String> unitDAO =  DAOFactory.createStringDAO(unitKey);

    String unit = "";
    if(unitDAO != null) {
      unit = unitDAO.getData();
    }

    // FORMAT
    TangoKey formatKey = generateAttributePropertyKey(SPECTRUM_ATTRIBUTE, AttributePropertyType.FORMAT);
    AbstractDAO<String> formatDAO =  DAOFactory.createStringDAO(formatKey);

    String format = "";
    if(formatDAO != null) {
      format = formatDAO.getData();
View Full Code Here


        buttonGoTo.setToolTipText("Not connected");
    }

    @Override
    protected void refreshGUI() {
        TangoKey tangoKey = null;

        tangoKey = generateAttributeKey(CurrentScanDataModel.TYPE_ACTION);
        setWidgetModel(comboActionType, tangoKey);

        tangoKey = generateAttributeKey(CurrentScanDataModel.SENSOR_ACTION);
View Full Code Here

    private void registerKeys() {
        if (scanServerDeviceName == null) {
            return;
        }
        TangoKey runNameKey = new TangoKey();
        runNameKey.registerAttribute(scanServerDeviceName, CurrentScanDataModel.RUN_NAME);
        runName.addKey(CurrentScanDataModel.TANGO_FACTORY_CLASS, runNameKey);

    }
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

     *
     * @param commandShortName the command short name (without device name)
     * @return The expected {@link TangoKey}
     */
    public TangoKey generateCommandKey(String commandShortName) {
        TangoKey key = new TangoKey();
        key.registerCommand(getModel(), commandShortName);
        return key;
    }
View Full Code Here

     *
     * @param propertyName the name of the device property
     * @return The expected {@link TangoKey}
     */
    public TangoKey generatePropertyKey(String propertyName) {
        TangoKey key = new TangoKey();
        key.registerDeviceProperty(getModel(), propertyName);
        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.