Package fr.soleil.tango.clientapi

Examples of fr.soleil.tango.clientapi.TangoCommand


     *
     * @param command
     */
    protected void command(String commandName) throws SalsaDeviceException {
        try {
            new TangoCommand(scanServerName, commandName).execute();
        }
        catch (DevFailed e) {
            String message = e.getMessage();
            if (e.errors != null && e.errors.length > 0) {
                message += " : " + e.errors[0].desc;
View Full Code Here


     * Send a command to the scan server.
     *
     * @param command
     */
    protected void command(String commandName) throws DevFailed {
        new TangoCommand(scanServerName, commandName).execute();
    }
View Full Code Here

     * Send a command to the scan server.
     *
     * @param command
     */
    protected void command(String commandName) throws DevFailed {
        new TangoCommand(scanServerName, commandName).execute();
    }
View Full Code Here

     */
    protected void command(String commandName) throws DevFailed {
        actionName = "command_inout(" + commandName + ")";
        if (TangoCommandHelper.isCommandExist(scanServerName, commandName)) {
            LOGGER.trace("Execute command = {}/{}", scanServerName, commandName);
            new TangoCommand(scanServerName, commandName).execute();
        }
    }
View Full Code Here

                            TangoAttribute attribute = new TangoAttribute(getModel() + "/configuration");
                            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

     * @return String[]
     * @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;
    }
View Full Code Here

     * @param configContent String
     * @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;
    }
View Full Code Here

                                        .getConfiguration();
                                String deParsedConfig = ConfigParser.getInstance().deParse(configuration, getPlugins());
                                // System.out.println(deParsedConfig);
                                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

     *
     * @param command
     */
    protected void command(String commandName) throws DevFailed {
        if (TangoCommandHelper.isCommandExist(scanServerName, commandName)) {
            new TangoCommand(scanServerName, commandName).execute();
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.tango.clientapi.TangoCommand

Copyright © 2018 www.massapicom. 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.