Package fr.soleil.tango.clientapi

Examples of fr.soleil.tango.clientapi.TangoCommand.execute()


                            Configuration config = tabbedPane.getConfiguration(index);
                            String unparsedConfig = ConfigParser.getInstance().deParse(config, getPlugins());
                            attribute.write(unparsedConfig);
                            // Start scan
                            TangoCommand startCommand = new TangoCommand(getModel(), "Start");
                            startCommand.execute();
                        } catch (DevFailed e) {
                            String message = DevFailedUtils.toString(e);
                            LOGGER.log(Level.SEVERE, message);
//                            System.err.println(message);
                        }
View Full Code Here


     * @throws DevFailed
     */
    public String[] readConfig(String configName) throws DevFailed {
        // XXX Maybe use TangoDataSource, but not sure
        TangoCommand command = new TangoCommand(getModel(), "ReadConfig");
        String[] result = command.execute(String[].class, configName + ".cfg");
        return result;
    }

    /**
     * Read current config
View Full Code Here

     * @return String[]
     * @throws DevFailed
     */
    public String[] checkConfig(String[] configContent) throws DevFailed {
        TangoCommand command = new TangoCommand(getModel(), "CheckConfig");
        String[] result = command.execute(String[].class, (Object[]) configContent);
        return result;
    }

    /**
     * Connection to start command
View Full Code Here

                                String[] arguments = deParsedConfig.split(System.getProperty("line.separator"));

                                TangoCommand saveCommand;
                                try {
                                    saveCommand = new TangoCommand(getModel(), "WriteConfig");
                                    saveCommand.execute(String[].class, (Object[]) arguments);
                                } catch (DevFailed e1) {
                                    LOGGER.log(Level.SEVERE, e1.getMessage());
                                }

                                saveButton.setEnabled(false);
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.