Package fr.esrf.TangoApi

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


        if (TangoAttributeHelper.isAttributeRunning(scanServerName, CurrentScanDataModel.RUN_NAME)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(CurrentScanDataModel.RUN_NAME);
                    runName = attribute.extractString();

                    if (runName.equalsIgnoreCase("unamed")) {
                        runName = "SalsaConfiguration";
                    }
                }
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 (proxy != null) {
      try {
        final DeviceAttribute deviceAttribute = proxy
            .read_attribute(START_DATE_NAME);
        final String extractedDate = deviceAttribute.extractString();
        if (!extractedDate.equalsIgnoreCase(scanStartDate)) {
          scanStartDate = extractedDate;
          scanChanged = true;
        }
      } catch (final DevFailed e) {
View Full Code Here

                scanResult = new ScanResult1DImpl();
                scanResult.setResultType(IScanResult.ResultType.RESULT_1D);

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

                // Time
                double[] timesArray = scanServerProxy.read_attribute("sensorsTimeStamps")
                        .extractDoubleArray();
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

                    if ((config == null) && TangoDeviceHelper.isDeviceRunning(scanserver)) {
                        DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                        if (deviceProxy != null) {
                            try {
                                DeviceAttribute attribute = deviceProxy.read_attribute(CurrentScanDataModel.RUN_NAME);
                                logScan = attribute.extractString();
                            } catch (DevFailed e) {
                                String errorMessage = "Cannot read " + scanserver + "/" + CurrentScanDataModel.RUN_NAME
                                + " " + DevFailedUtils.toString(e);
                                LOGGER.warn(errorMessage);
                                LOGGER.debug("Stack trace", e);
View Full Code Here

                        DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                        if (deviceProxy != null) {
                            try {
                                DeviceAttribute attribute = deviceProxy
                                .read_attribute(CurrentScanDataModel.RUN_START_DATE);
                                String runStartDate = attribute.extractString();
                                LOGGER.trace("Read {}/{}={}", scanserver, CurrentScanDataModel.RUN_START_DATE,
                                        runStartDate);
                                if ((runStartDate != null) && !runStartDate.isEmpty()) {
                                    int index = runStartDate.indexOf(" ");
                                    if (index > -1) {
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

        // read the associated devices attributes from DataRecorder device
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(dataRecorderPath);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(TECHNICAL_DATA_DEVICE_ATTR);
                technicalDataPath = deviceAttribute.extractString();
            } catch (DevFailed exception) {
                exception.printStackTrace();
            }
        }
View Full Code Here

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(m_strAuthPath);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute("LdapServer");
                strServeurNamePort = deviceAttribute.extractString();
                if (strServeurNamePort == null) {
                    strServeurNamePort = "";
                }
            } catch (DevFailed exception) {
              AuthServerMessageManager.notifyReadAttributeErrorDetected(m_strAuthPath, "LdapServer",exception);
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.