Examples of TangoKey


Examples of fr.soleil.comete.tango.data.service.TangoKey

            IKey qualityKey = null;
            ColorationLevel colorationLevel = getColorationLevelType();
            if (colorationLevel != null) {
                switch (colorationLevel) {
                    case ATTRIBUTE_QUALITY:
                        qualityKey = new TangoKey();
                        TangoKeyTool
                                .registerAttributeQuality(qualityKey,
                                        TangoKeyTool.getDeviceName(key),
                                        TangoKeyTool.getAttributeName(key));
                        break;
                    case DEVICE_STATE:
                        qualityKey = new TangoKey();
                        TangoKeyTool.registerAttribute(qualityKey, TangoKeyTool.getDeviceName(key),
                                "State");
                        break;
                }
            }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

    protected void initKey() {
        if (TangoAttributeHelper.isAttributeReadOnly(getDeviceName(), getAttributeName())) {
            displayReadValue = true;
        }

        key = new TangoKey();
        if (displayReadValue) {
            TangoKeyTool.registerAttribute(key, tangoHelper.getDeviceName(),
                    tangoHelper.getEntityName());
        }
        else {
            TangoKeyTool.registerWriteAttribute(key, tangoHelper.getDeviceName(),
                    tangoHelper.getEntityName());
        }

        // init attribute quality key
        qualityKey = new TangoKey();
        TangoKeyTool.registerAttributeQuality(qualityKey, getDeviceName(), getAttributeName());
    }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

     
        if ((canInitDAO() && (widget != null))) {

            boolean connected;
            for (final String element : attributeNameList) {
                final TangoKey aKey = new TangoKey();
                TangoKeyTool.registerAttribute(aKey, element);

                connected = ((ChartViewerBox) mybox).connectWidget(widget, aKey);

                if (!connected) {
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

    if ((canInitDAO() && (widget != null))) {

      boolean connected;
      for (int i = 0; i < xAttributeNameList.length; i++) {
        final TangoKey xKey = new TangoKey();
        final TangoKey yKey = new TangoKey();

        TangoKeyTool.registerAttribute(xKey, xAttributeNameList[i]);
        TangoKeyTool.registerAttribute(yKey, yAttributeNameList[i]);
        connected = ((ChartViewerBox) mybox).connectWidgetDual(((IChartViewer)widget),
            xKey, yKey);

        if (this.displayAttributeLabel) {
          // Affichage du label
          String dataViewId = yKey.getInformationKey();
          String displayName = TangoAttributeHelper.getLabel(
              TangoKeyTool.getDeviceName(yKey),
              TangoKeyTool.getAttributeName(yKey));
          ((IChartViewer)widget).setDataViewDisplayName(dataViewId, displayName);
        }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

    }

    @Override
    public void initDAO() {
        if (m_cmdhelper.isEntityDefined()) {
            TangoKey commandKey = new TangoKey();
            TangoKeyTool.registerCommand(commandKey, m_cmdhelper.getDeviceName(),
                    m_cmdhelper.getEntityName());
            StringMatrixCommandDataSource cmdArray = (StringMatrixCommandDataSource) refreshingManager
                    .createDataSource(commandKey);
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

    @Override
    protected void initKey() {
        if (displayReadValue) {
            super.initKey();// display read part
        } else {
            key = new TangoKey();
            TangoKeyTool.registerWriteAttribute(key, tangoHelper.getDeviceName(),
                    tangoHelper.getEntityName());
        }
    }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

  /**
   * init the tango key on attribute (read part). This method can be overriden
   * to register another type of key (ie attribute write part, command, etc.)
   */
  protected void initKey() {
    key = new TangoKey();
    TangoKeyTool.registerAttribute(key, tangoHelper.getDeviceName(),
        tangoHelper.getEntityName());
  }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

        return result;
    }

    @Override
    protected void initKey() {
        key = new TangoKey();
        TangoKeyTool.registerWriteAttribute(key, getDeviceName(), getAttributeName());

        readKey = new TangoKey();
        TangoKeyTool.registerAttribute(readKey, getDeviceName(), getAttributeName());

        // init attribute quality key
        qualityKey = new TangoKey();
        TangoKeyTool.registerAttributeQuality(qualityKey, getDeviceName(), getAttributeName());
    }
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

        if ((canInitDAO() && (widget != null))) {
            clearDAO();

            boolean connected;
            for (final String element : attributeNameList) {
                final TangoKey aKey = new TangoKey();
                TangoKeyTool.registerAttribute(aKey, element);

                connected = ((ChartViewerBox) mybox).connectWidget(widget, aKey);

                if (!connected) {
View Full Code Here

Examples of fr.soleil.comete.tango.data.service.TangoKey

    if ((canInitDAO() && (widget != null))) {
      clearDAO();

      boolean connected;
      for (int i = 0; i < xAttributeNameList.length; i++) {
        final TangoKey xKey = new TangoKey();
        final TangoKey yKey = new TangoKey();

        TangoKeyTool.registerAttribute(xKey, xAttributeNameList[i]);
        TangoKeyTool.registerAttribute(yKey, yAttributeNameList[i]);
        connected = ((ChartViewerBox) mybox).connectWidgetDual(((IChartViewer)widget),
            xKey, yKey);

        if (this.displayAttributeLabel) {
          // Affichage du label
          String dataViewId = yKey.getInformationKey();
          String displayName = TangoAttributeHelper.getLabel(
              TangoKeyTool.getDeviceName(yKey),
              TangoKeyTool.getAttributeName(yKey));
          ((IChartViewer)widget).setDataViewDisplayName(dataViewId, displayName);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.