Package fr.esrf.TangoApi

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


            tempAuthModel = dbDatum.extractString();

            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
            if (proxy != null) {
                DeviceAttribute deviceAttribute = proxy.read_attribute(TECH_DEVICE);
                tempTechModel = deviceAttribute.extractString();
            }

            if ((tempAuthModel != null) && (!tempAuthModel.trim().isEmpty())
                    && (!ObjectUtils.sameObject(getAuthModel(), tempAuthModel))) {
                authModel = tempAuthModel;
View Full Code Here


        if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, RUN_NAME)) {
            final DeviceProxy proxy = getDeviceProxy(scanServerDeviceName);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(RUN_NAME);
                    runName = deviceAttribute.extractString();
                }
                catch (final DevFailed e) {
                }
            }
        }
View Full Code Here

        if (TangoAttributeHelper.isAttributeRunning(aScanServerDeviceName, RUN_START_DATE)) {
            final DeviceProxy proxy = getDeviceProxy(aScanServerDeviceName);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(RUN_START_DATE);
                    date = deviceAttribute.extractString();
                }
                catch (final DevFailed e) {
                }
            }
        }
View Full Code Here

        if (TangoAttributeHelper.isAttributeRunning(scanServerDeviceName, RUN_NAME)) {
            final DeviceProxy proxy = getDeviceProxy(scanServerDeviceName);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(RUN_NAME);
                    runName = deviceAttribute.extractString();
                }
                catch (final DevFailed e) {
                }
            }
        }
View Full Code Here

        if (TangoAttributeHelper.isAttributeRunning(aScanServerDeviceName, attributeName)) {
            final DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(aScanServerDeviceName, false);
            if (proxy != null) {
                try {
                    DeviceAttribute deviceAttribute = proxy.read_attribute(attributeName);
                    value = deviceAttribute.extractString();
                } catch (final DevFailed e) {
                }
            }
        }
        return value;
View Full Code Here

                        if (dataRecorded) {
                            String nexusFileName = null;
                            while ((nexusFileName == null) || nexusFileName.isEmpty()) {
                                attribute = scanProxy.read_attribute(NEXUS_FILE);
                                if (attribute != null) {
                                    nexusFileName = attribute.extractString();
                                }
                            }
                            nexusFileNameMap.put(scanServerName.toLowerCase(), nexusFileName);
                            String dataRecorderDeviceName = DEFAULT_RECORDER;
                            Database database = TangoDeviceHelper.getDatabase();
View Full Code Here

                                    DeviceProxy dataRecorderProxy = TangoDeviceHelper
                                    .getDeviceProxy(dataRecorderDeviceName);
                                    if (dataRecorderProxy != null) {
                                        DeviceAttribute nxEntryAttribute = dataRecorderProxy.read_attribute(NX_ENTRY);
                                        if (nxEntryAttribute != null) {
                                            String nxEntryName = nxEntryAttribute.extractString();
                                            nexusFileEntryMap.put(scanServerName.toLowerCase(), nxEntryName);
                                        }
                                    }
                                }
                            }
View Full Code Here

        String date = null;
        final DeviceProxy proxy = getDeviceProxy(aScanServerDeviceName);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(RUN_START_DATE);
                date = deviceAttribute.extractString();
            }
            catch (final DevFailed e) {
                return null;
            }
        }
View Full Code Here

        String date = null;
        final DeviceProxy proxy = getDeviceProxy(scanServerDeviceName);
        if (proxy != null) {
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(RUN_NAME);
                date = deviceAttribute.extractString();
            }
            catch (final DevFailed e) {
                return null;
            }
        }
View Full Code Here

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(model);
        if (proxy != null) {
            String attributeName = EXPERIMENTAL_FRAME_DEVICE_ATTR;
            try {
                DeviceAttribute deviceAttribute = proxy.read_attribute(attributeName);
                experimentalFrameDeviceName = deviceAttribute.extractString();
                attributeName = AUTH_SERVER_DEVICE_ATTR;
                deviceAttribute = proxy.read_attribute(attributeName);
                authServerDeviceName = deviceAttribute.extractString();
            } catch (DevFailed exception) {
                DataRecorderMessageManager.notifyReadAttributeErrorDetected(model, attributeName, 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.