Examples of extractString()


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

        String dataRecorderPath = pnl.getDataRecorderPath();
        DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(dataRecorderPath);
        try {
            DbDatum property = deviceProxy.get_property(ARCHIVING_DEVICE_PROP);
            archivingDeviceName = property.extractString();
        } catch (DevFailed e) {
            e.printStackTrace();
        }
        // archivingDeviceName can be null
        TangoDataBaseManager.getInstance().setArchivingDevicePath(archivingDeviceName);
View Full Code Here

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

            Database database = TangoDeviceHelper.getDatabase();
            if (database != null) {
                try {
                    DbDatum dbDatum = database.get_device_property(scanServer, "DataRecorder");
                    if (dbDatum != null) {
                        dataRecorderDeviceName = dbDatum.extractString();
                    }

                    if (dataRecorderDeviceName != null && !dataRecorderDeviceName.isEmpty()) {
                        DeviceProxy dataRecorderProxy = TangoDeviceHelper
                                .getDeviceProxy(dataRecorderDeviceName);
View Full Code Here

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

                // "FacadeDevice" and "Publisher" are used for tests. Maybe someone wants to
                // simulate an MCA device to test the application. Let's check it.
                String deviceType = deviceTypeName;
                try {
                    DbDatum property = device.get_property("DeviceType");
                    deviceTypeName = property.extractString();
                }
                catch (DevFailed df) {
                    // Simply ignore this case: The test device is not configured for this
                    // application.
                    deviceTypeName = deviceType;
View Full Code Here

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

                            String dataRecorderDeviceName = DEFAULT_RECORDER;
                            Database database = TangoDeviceHelper.getDatabase();
                            if (database != null) {
                                DbDatum dbDatum = database.get_device_property(scanServerName, DATA_RECORDER);
                                if (dbDatum != null) {
                                    dataRecorderDeviceName = dbDatum.extractString();
                                }

                                if (TangoDeviceHelper.isDeviceRunning(dataRecorderDeviceName)) {
                                    DeviceProxy dataRecorderProxy = TangoDeviceHelper
                                    .getDeviceProxy(dataRecorderDeviceName);
View Full Code Here

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

        String property = "";
        try {
            Database database = TangoDeviceHelper.getDatabase();
            property = AUTH_DEVICE;
            DbDatum dbDatum = database.get_device_property(getModel(), property);
            tempAuthModel = dbDatum.extractString();

            property = TECH_DEVICE;
            dbDatum = database.get_device_property(getModel(), property);
            tempTechModel = dbDatum.extractString();
View Full Code Here

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

            DbDatum dbDatum = database.get_device_property(getModel(), property);
            tempAuthModel = dbDatum.extractString();

            property = TECH_DEVICE;
            dbDatum = database.get_device_property(getModel(), property);
            tempTechModel = dbDatum.extractString();

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

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

                scanResult = new ScanResult2DImpl();
                scanResult.setResultType(IScanResult.ResultType.RESULT_2D);
               
                // Name.
                DeviceAttribute runNameAttribute = scanServerProxy.read_attribute("runName");
                String runName = runNameAttribute.extractString();
                scanResult.setRunName(runName);
               
                // Building empty matrix.
                DeviceAttribute sensorsTimeStampsAttribute = scanServerProxy.read_attribute("sensorsTimeStamps");
                columnsNumber = sensorsTimeStampsAttribute.getDimX();
View Full Code Here

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

                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

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

                        DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                        if (deviceProxy != null) {
                            try {
                                DeviceAttribute attribute = deviceProxy
                                .read_attribute(CurrentScanDataModel.RUN_NAME);
                                logScan = attribute.extractString();
                            }
                            catch (DevFailed e) {
                            }
                        }
                    }
View Full Code Here

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

                        DeviceProxy deviceProxy = TangoDeviceHelper.getDeviceProxy(scanserver);
                        if (deviceProxy != null) {
                            try {
                                DeviceAttribute attribute = deviceProxy
                                .read_attribute(CurrentScanDataModel.RUN_START_DATE);
                                String runStartDate = attribute.extractString();
                                // System.out.println("runStartDate=" + runStartDate);
                                if ((runStartDate != null) && !runStartDate.isEmpty()) {
                                    int index = runStartDate.indexOf(" ");
                                    if (index > -1) {
                                        logHour = runStartDate.substring(index + 1);
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.