Package fr.esrf.TangoApi

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


            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

                // "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

                            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

        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

            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

                    }
                    if (database != null) {
                        DbDatum dbDatum = database.get_device_property(context.getScanServerName(),
                                "DataRecorder");
                        if (dbDatum != null) {
                            dataRecorderDeviceName = dbDatum.extractString();
                        }

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

            return;
        try
        {
            Database db = new Database();
            DbDatum prop = db.get_device_property(salsaConfigDeviceName, propertySalsaName);
            String config = prop.extractString();
            setConfigFile(config);
        }
        catch (DevFailed e)
        {
            e.printStackTrace();
View Full Code Here

        String tempTechModel = null;

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

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

        String tempTechModel = null;

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

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

            if ((tempAuthModel != null) && (!tempAuthModel.trim().isEmpty())
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.