Examples of DeviceData


Examples of fr.esrf.TangoApi.DeviceData

        String[] split = this.deviceCommand.split("/");
        if (split.length >= 2) {
            String commandName = split[split.length - 1];

            String deviceName = this.deviceCommand.substring(0, this.deviceCommand.length() - commandName.length() - 1);
            DeviceData result;

            try {
                DeviceProxy proxy = getDeviceProxy(deviceName);

                result = proxy.command_inout(commandName);
            } catch (DevFailed e) {
                throw new SourceDeviceException(DevFailedUtils.toString(e));
            }
            String[] sourceArray = result.extractStringArray();
            sourceList = Arrays.asList(sourceArray);
        }

        return sourceList;
    }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            String executedCommand = "";
            try {
                executedCommand = GET_POST_RECORDING_CMD;
                DeviceData data = proxy.command_inout(executedCommand);
                postRecordingCommand = data.extractString();
                setPostRecordingValues();

                executedCommand = GET_DATA_MODEL_CMD;
                data = proxy.command_inout(GET_DATA_MODEL_CMD);
                datamodels = data.extractStringArray();

                executedCommand = SCRIPTS_ATTR;
                DeviceAttribute deviceAttribute = proxy.read_attribute(SCRIPTS_ATTR);
                tabScripts = deviceAttribute.extractStringArray();
            } catch (DevFailed exception) {
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

        if ((tabScripts != null) && (proxy != null)) {

            for (String script : tabScripts) {
                String[] tabParameters = null;
                try {
                    DeviceData parameter = new DeviceData();
                    parameter.insert(getScriptName(script));
                    DeviceData data = proxy.command_inout(GET_SCRIPTS_INFO_CMD, parameter);
                    tabParameters = data.extractStringArray();
                } catch (DevFailed exception) {
                    StringBuilder errorMessage = new StringBuilder();
                    errorMessage.append("Error when executing command " + getModel() + "/" + GET_SCRIPTS_INFO_CMD
                            + "/n");
                    errorMessage.append(DevFailedUtils.toString(exception) + "/n");
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

    private void manageRecorderConfigurationSaving(String value, String commandName) {
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {
                DeviceData argin = new DeviceData();
                argin.insert(value);
                proxy.command_inout(commandName, argin);
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing command " + getModel() + "/" + commandName + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

    public String[] getRecorderConfigList() {
        String[] result = null;
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {
                DeviceData deviceData = proxy.command_inout(GET_CONFIG_LIST_CMD);
                result = deviceData.extractStringArray();
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing command " + getModel() + "/" + GET_CONFIG_LIST_CMD + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
                new Exception(errorMessage.toString()).printStackTrace();
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

    public void loadRecorderConfig(String configName) {
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(getModel());
        if (proxy != null) {
            try {
                DeviceData argin = new DeviceData();
                argin.insert(configName);
                proxy.command_inout(LOAD_CONFIG_CMD, argin);
            } catch (DevFailed exception) {
                StringBuilder errorMessage = new StringBuilder();
                errorMessage.append("Error when executing command " + getModel() + "/" + LOAD_CONFIG_CMD + "/n");
                errorMessage.append(DevFailedUtils.toString(exception) + "/n");
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceData

     */
    private String[] executeCommandInOutShort(short arg) {
        String[] result = null;
        try {
            DeviceProxy proxy = new DeviceProxy(getModel());
            DeviceData argin = new DeviceData();
            argin.insert(arg);
            DeviceData cmdResult = proxy.command_inout(GET_PATH_SYMBOLS_CMD, argin);
            result = cmdResult.extractStringArray();
        } catch (DevFailed devFailed) {
            StringBuilder errorMessage = new StringBuilder();
            errorMessage.append("Error when executing command " + getModel() + "/" + GET_PATH_SYMBOLS_CMD + "/n");
            errorMessage.append(DevFailedUtils.toString(devFailed) + "/n");
            new Exception(errorMessage.toString()).printStackTrace();
View Full Code Here

Examples of org.cybergarage.upnp.xml.DeviceData

  }
 
  private static Device buildRootDeviceNode(Node root, ServiceReference sr){   
    Node dev = new Node(Device.ELEM_NAME);
    root.addNode(dev);
    DeviceData dd = new DeviceData();
    dd.setDescriptionURI("/gen-desc.xml");
    dev.setUserData(dd);
    Device devUPnP = new Device(root,dev);

    devUPnP.setDeviceType(extractDeviceType(sr));
    devUPnP.setFriendlyName((String) sr.getProperty(UPnPDevice.FRIENDLY_NAME));
View Full Code Here

Examples of org.cybergarage.upnp.xml.DeviceData

    }   
  }

  private static void buildDevice(String id,Device parent, ServiceReference sr) {
    Node dev = new Node(Device.ELEM_NAME);
    DeviceData dd = new DeviceData();
    dd.setDescriptionURI(id+"/gen-desc.xml");
    dev.setUserData(dd);
   
    Device devUPnP = new Device(dev);
   
    devUPnP.setDeviceType(extractDeviceType(sr));
View Full Code Here

Examples of org.eclipse.swt.graphics.DeviceData

    {
        return UIThreadRunnable.syncExec( bot.getDisplay(), new IntResult()
        {
            public Integer run()
            {
                DeviceData info = bot.getDisplay().getDeviceData();
                if ( !info.tracking )
                {
                    fail( "To run this test options 'org.eclipse.ui/debug' and 'org.eclipse.ui/trace/graphics' must be true." );
                }
                return info.objects.length;
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.