Package fr.soleil.comete.dao.tangodao

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


        return m_helper.getCompleteEntityName();
    }

    @Override
    public TangoKey initKey() {
        TangoKey key = new TangoKey();
        key.registerCommand(m_helper.getDeviceName(), m_helper.getEntityName());
        return key;
    }
View Full Code Here


  private static final long serialVersionUID = 7106219109138195391L;

  @Override
  public TangoKey initKey() {
    TangoKey key = new TangoKey();
    key.registerAttribute(m_helper.getDeviceName(), m_helper.getEntityName());
    return key;
  }
View Full Code Here

        yAttributeNameList = nameList;
    }

    @Override
    public void initDAO() {
        TangoKey key = new TangoKey();
        key.registerDualAttributes(xAttributeNameList, yAttributeNameList);
        widget.addKey(TangoDAOFactory.class.getName(), key);
        widget.switchDAOFactory(TangoDAOFactory.class.getName());
    }
View Full Code Here

    protected void refreshGUI() {
        // nom et status du device
        setStatusModel();

        // construction des clefs
        TangoKey key = new TangoKey();
        String[] xTab = new String[] { getModel() + "/experimentalDataX",
                getModel() + "/experimentalDataX" };
        String[] yTab = new String[] { getModel() + "/experimentalDataY",
                getModel() + "/fittedDataY" };
        key.registerDualAttributes(xTab, yTab);

        // Clear all curve
        cleanWidget(getFittedData());
        setWidgetModel(getFittedData(), key);
        setWidgetModel(getNbDataViewer(), generateAttributeKey(DataFitterBean.NB_DATA_ATTRIBUTE));
View Full Code Here

    protected void refreshGUI() {
        // nom et status du device
        setStatusModel();

        // construction des clefs
        TangoKey key = new TangoKey();
        String[] xTab = new String[] { getModel() + "/experimentalDataX",
                getModel() + "/experimentalDataX" };
        String[] yTab = new String[] { getModel() + "/experimentalDataY",
                getModel() + "/fittedDataY" };
        key.registerDualAttributes(xTab, yTab);

        // Clear all curve
        cleanWidget(getFittedData());
        setWidgetModel(getFittedData(), key);
        setWidgetModel(getNbDataViewer(), generateAttributeKey(DataFitterBean.NB_DATA_ATTRIBUTE));
View Full Code Here

        yAttributeNameList = nameList;
    }

    @Override
    public void initDAO() {
        TangoKey key = new TangoKey();
        key.registerDualAttributes(xAttributeNameList, yAttributeNameList);
        widget.addKey(TangoDAOFactory.class.getName(), key);
        widget.switchDAOFactory(TangoDAOFactory.class.getName());
    }
View Full Code Here

    }

    @Override
    protected void refreshGUI() {
        String propertyValue = null;
        TangoKey tangoKey = null;
        // read increment device properties
        propertyValue = this.deviceBundle.getString("UserMotorBean.property.increment");
        tangoKey = generatePropertyKey(propertyValue);
        setWidgetModel(getIncrementValue(), tangoKey);
View Full Code Here

        if (this.model.equals("")) {
            return;
        }

        double position = 0;
        TangoKey positionKey = generateAttributeKey(this.deviceBundle
                .getString("UserMotorBean.attribut.position"));
        TangoDAOFactory factory = new TangoDAOFactory();
        AbstractDAO<Number> positionDAO = factory.createNumberDAO(positionKey);
        if (positionDAO != null && positionDAO.getData() != null) {
            position = positionDAO.getData().doubleValue();
View Full Code Here

        if (this.isSimpleMotorBeanGUI) {

            double position = 0;

            TangoKey attrKey = generateAttributeKey(this.deviceBundle
                    .getString("UserMotorBean.attribut.position"));

            TangoDAOFactory DAOFactory = new TangoDAOFactory();
            AbstractDAO<Number> attrDAO = DAOFactory.createNumberDAO(attrKey);

            if (attrDAO != null && attrDAO.getData() != null) {
                position = attrDAO.getData().doubleValue();
            }

            double distance = Math.abs(this.targetValue - position);
            if (distance > 0.00001) {
                if (increment == 0) {
                    position = this.targetValue;
                }
                else if (this.targetValue != position) {
                    if (distance > increment) {
                        position += increment * Math.signum(this.targetValue - position);
                    }
                    else {
                        position = this.targetValue;
                    }
                }
            }

            attrDAO.setData(position);

        }
        else {

            double position = 0;
            TangoKey positionKey = generateAttributeKey(this.deviceBundle
                    .getString("UserMotorBean.attribut.position"));

            TangoDAOFactory daoFactory = new TangoDAOFactory();
            AbstractDAO<Number> positionDAO = daoFactory.createNumberDAO(positionKey);

View Full Code Here

    @Override
    protected void refreshGUI() {
     
      System.out.println("refreshGUI()");
   
      TangoKey valueKey = generateAttributeKey(CurrentTimeTrendUser.SPECTRUM_ATTRIBUTE);
      TangoKey timeKey = generateAttributeKey(CurrentTimeTrendUser.TIME_ATTRIBUTE);
      TangoKey modeKey = generateAttributeKey(CurrentTimeTrendUser.FUNC_MODE_SPECTRUM_ATTRIBUTE);
      TangoKey maxTrendKey = generateAttributeKey(CurrentTimeTrendUser.MAXTREND_ATTRIBUTE);
      TangoKey tickSpacingKey = generateAttributeKey(CurrentTimeTrendUser.TICKSPACING_ATTRIBUTE);
     
      TangoDAOFactory DAOFactory = new TangoDAOFactory();
     
      // 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

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.