Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.DeviceAttribute.extractString()


            // read the auth server attribute from DataRecorder device
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(deviceName);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(AUTH_SERVER_DEVICE_ATTR);
                    authServerDeviceName = deviceAttribute.extractString();
                } catch (DevFailed exception) {
                  AuthServerMessageManager.notifyReadAttributeErrorDetected(deviceName, AUTH_SERVER_DEVICE_ATTR,exception);
                }
            }
View Full Code Here


        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute("dirAccessRights");
                strDirAccess = deviceAttribute.extractString();
                if (strDirAccess == null) {
                    strDirAccess = "";
                }
            } catch (DevFailed exception) {
               AuthServerMessageManager.notifyReadAttributeErrorDetected(m_strAuthPath,"dirAccessRights",exception);
View Full Code Here

            } catch (DevFailed exception) {
               AuthServerMessageManager.notifyReadAttributeErrorDetected(m_strAuthPath,"dirAccessRights",exception);
            }
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute("fileAccessRights");
                strFileAccess = deviceAttribute.extractString();
                if (strFileAccess == null) {
                    strFileAccess = "";
                }
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyReadAttributeErrorDetected(m_strAuthPath,"fileAccessRights",exception);
View Full Code Here

            // read the auth server attribute from DataRecorder device
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(deviceName);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(AUTH_SERVER_DEVICE_ATTR);
                    authServerDeviceName = deviceAttribute.extractString();
                } catch (DevFailed exception) {
                  AuthServerMessageManager.notifyReadAttributeErrorDetected(deviceName, AUTH_SERVER_DEVICE_ATTR,exception);
                }
            }
View Full Code Here

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strDataRecorderPath);
        if (proxy != null) {
            String strPathTechnicalData = null;
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(TECHNICAL_DATA_DEVICE_ATTR);
                strPathTechnicalData = deviceAttribute.extractString();
            } catch (DevFailed exception) {
              TechnicalDataMessageManager.notifyReadAttributeErrorDetected(m_strDataRecorderPath, TECHNICAL_DATA_DEVICE_ATTR,exception);
            }

            // Set path to pnl, pnlConfig & scrollpane which contains treetable
View Full Code Here

            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute("configList");
                    configList = deviceAttribute.extractString();
                }
                catch (DevFailed exception) {
                  TechnicalDataMessageManager.notifyReadAttributeErrorDetected(getModel(),"configList",exception);
                }
            }
View Full Code Here

                    scanResult.setResultType(IScanResult.ResultType.RESULT_1D);

                    // Name.
                    actionName = "read_attribute(\"runName\")";
                    DeviceAttribute runNameAttribute = scanServerProxy.read_attribute("runName");
                    String runName = runNameAttribute.extractString();
                    scanResult.setRunName(runName);

                    IScanPoint scanPoint;
                    List<IScanPoint> scanPointsList = new ArrayList<IScanPoint>();
View Full Code Here

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strDataRecorderPath);
        if (proxy != null) {
            String strPathTechnicalData = null;
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(TECHNICAL_DATA_DEVICE_ATTR);
                strPathTechnicalData = deviceAttribute.extractString();
            } catch (DevFailed exception) {
                exception.printStackTrace();
            }

            // Set path to pnl, pnlConfig & scrollpane which contains treetable
View Full Code Here

            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute("configList");
                    configList = deviceAttribute.extractString();
                }
                catch (DevFailed exception) {
                    exception.printStackTrace();
                }
            }
View Full Code Here

        if (type == 1) { // Boolean
          send("read", attr.extractBoolean());
        } else if (type >= 2 && type <= 7) { // Number
          send("read", attr.extractDouble());
        } else if (type == 8) { // String
          send("read", attr.extractString());
        }

      } else {
        send("read", attr.extractString());
      }
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.