Package fr.soleil.tango.clientapi

Examples of fr.soleil.tango.clientapi.TangoAttribute.extract()


    public static Double getData(IDevice device) throws SalsaDeviceException {
        Double result = Double.NaN;
        try {
            TangoAttribute tangoAttribute = getTangoAttribute(device);
            if (tangoAttribute != null) {
                result = tangoAttribute.extract(Double.class);
            }
        }
        catch (Exception e) {
            // e.printStackTrace();
            SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
View Full Code Here


        public void run() {

            String value = null;
            try {
                TangoAttribute tangoAttribute = new TangoAttribute(attributeName);
                value = tangoAttribute.extract(String.class);

                if (value != null) {
                    synchronized (m_attributeStringValues) {
                        m_attributeStringValues.put(attributeName, value);
                    }
View Full Code Here

            Double value = Double.NaN;
            try {
                TangoAttribute tangoAttribute = new TangoAttribute(attributeName);

                if (!writeValue) {
                    value = tangoAttribute.extract(Double.class);

                    if (value != null) {
                        synchronized (m_attributeDoubleValues) {
                            m_attributeDoubleValues.put(attributeName, value);
                        }
View Full Code Here

                        }

                        if (dataRecorderDeviceName != null && !dataRecorderDeviceName.isEmpty()) {
                            TangoAttribute tangoAttribute = new TangoAttribute(
                                    dataRecorderDeviceName + "/targetDirectory");
                            String targetDirectory = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/fileName");
                            String fileName = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/nxEntryName");
View Full Code Here

                            TangoAttribute tangoAttribute = new TangoAttribute(
                                    dataRecorderDeviceName + "/targetDirectory");
                            String targetDirectory = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/fileName");
                            String fileName = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/nxEntryName");
                            nxEntryName = tangoAttribute.extract(String.class);
                            // nexusFileName = targetDirectory + File.separator + fileName + ".nxs";
                            // Data Recorder always on linux environnement
View Full Code Here

                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/fileName");
                            String fileName = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/nxEntryName");
                            nxEntryName = tangoAttribute.extract(String.class);
                            // nexusFileName = targetDirectory + File.separator + fileName + ".nxs";
                            // Data Recorder always on linux environnement
                            nexusFileName = targetDirectory + "/" + fileName + ".nxs";
                        }
                    }
View Full Code Here

        }
        // BUG 19414
        // return AttributeManager.readDoubleAttribute(device.getName());
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(device.getName());
            return tangoAttribute.extract(Double.class);
        }
        catch (Exception e) {
            // e.printStackTrace();
            SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                    "Error while trying to read the TangORB attribute value for the device "
View Full Code Here

                        }

                        if (dataRecorderDeviceName != null && !dataRecorderDeviceName.isEmpty()) {
                            TangoAttribute tangoAttribute = new TangoAttribute(
                                    dataRecorderDeviceName + "/targetDirectory");
                            String targetDirectory = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/fileName");
                            String fileName = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/nxEntryName");
View Full Code Here

                            TangoAttribute tangoAttribute = new TangoAttribute(
                                    dataRecorderDeviceName + "/targetDirectory");
                            String targetDirectory = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/fileName");
                            String fileName = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/nxEntryName");
                            nxEntryName = tangoAttribute.extract(String.class);
                            // nexusFileName = targetDirectory + File.separator + fileName + ".nxs";
                            // Data Recorder always on linux environnement
View Full Code Here

                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/fileName");
                            String fileName = tangoAttribute.extract(String.class);
                            tangoAttribute = new TangoAttribute(dataRecorderDeviceName
                                    + "/nxEntryName");
                            nxEntryName = tangoAttribute.extract(String.class);
                            // nexusFileName = targetDirectory + File.separator + fileName + ".nxs";
                            // Data Recorder always on linux environnement
                            nexusFileName = targetDirectory + "/" + fileName + ".nxs";
                        }
                    }
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.