Examples of extractLong()


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

                try {
                    // Type
                    actionName = "read_attribute(\"" + CurrentScanDataModel.SCAN_TYPE + "\")";
                    DeviceAttribute scanTypeAttribute = scanServerProxy
                            .read_attribute(CurrentScanDataModel.SCAN_TYPE);
                    int scanType = scanTypeAttribute.extractLong();
                    // 0 -> time scan
                    // 1 -> scan 1d
                    // 2 -> scan 2d
                    switch (scanType) {
                        case 0:
View Full Code Here

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

                try {
                    // Type
                    actionName = "read_attribute(\"scanType\")";
                    DeviceAttribute scanTypeAttribute = scanServerProxy.read_attribute("scanType");
                    int scanType = scanTypeAttribute.extractLong();
                    if (scanType != 1 && scanType != 0) {
                        return null;
                    }

                    scanResult = new ScanResult1DImpl();
View Full Code Here

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

                try {
                    // Type
                    actionName = "read_attribute(\"" + CurrentScanDataModel.SCAN_TYPE + "\")";
                    DeviceAttribute scanTypeAttribute = scanServerProxy
                            .read_attribute(CurrentScanDataModel.SCAN_TYPE);
                    int scanType = scanTypeAttribute.extractLong();
                    // 0 -> time scan
                    // 1 -> scan 1d
                    // 2 -> scan 2d
                    switch (scanType) {
                        case 0:
View Full Code Here

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

        if (TangoDeviceHelper.isDeviceRunning(scanServerName)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(attributeName);
                    value = attribute.extractLong();
                }
                catch (Exception e) {
                    // TODO: handle exception
                }
            }
View Full Code Here

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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, attributeName)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(attributeName);
                    result = attribute.extractLong();
                }
                catch (DevFailed e) {
                }
            }
        }
View Full Code Here

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

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

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

        if (TangoAttributeHelper.isAttributeRunning(scanServerName, attributeName)) {
            DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(scanServerName);
            if (proxy != null) {
                try {
                    DeviceAttribute attribute = proxy.read_attribute(attributeName);
                    result = attribute.extractLong();
                }
                catch (DevFailed e) {
                }
            }
        }
View Full Code Here

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

                try {
                    // Type
                    actionName = "read_attribute(\"" + CurrentScanDataModel.SCAN_TYPE + "\")";
                    DeviceAttribute scanTypeAttribute = scanServerProxy
                            .read_attribute(CurrentScanDataModel.SCAN_TYPE);
                    int scanType = scanTypeAttribute.extractLong();
                    // 0 -> time scan
                    // 1 -> scan 1d
                    // 2 -> scan 2d
                    switch (scanType) {
                        case 0:
View Full Code Here

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

            int pointIndex;
            try {
                // Type
                DeviceAttribute scanTypeAttribute = scanServerProxy.read_attribute("scanType");
                int scanType = scanTypeAttribute.extractLong();
                if (scanType != 1 && scanType != 0) {
                    return null;
                }

                scanResult = new ScanResult1DImpl();
View Full Code Here

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

                try {
                    // Type
                    actionName = "read_attribute(\"scanType\")";
                    DeviceAttribute scanTypeAttribute = scanServerProxy.read_attribute("scanType");
                    int scanType = scanTypeAttribute.extractLong();
                    if (scanType != 1 && scanType != 0) {
                        return null;
                    }

                    scanResult = new ScanResult1DImpl();
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.