Package modbuspal.automation

Examples of modbuspal.automation.Automation


        if( withAutomations == true )
        {
            String names[] = exportedSlave.getRequiredAutomations();
            for(int i=0; i<names.length; i++)
            {
                Automation automation = getAutomation( names[i] );
                automation.save(out);
            }
        }
        exportedSlave.save(out,withBindings);

        String closeTag = "</modbuspal_slave>\r\n";
View Full Code Here


            BindingEditor dialog = new BindingEditor(slaveDialog.modbusPalPane);
            slaveDialog.setStatus("Binding...");
            dialog.setVisible(true);

            // retrieve the selected automation
            Automation source = dialog.getSelectedAutomation();
            if( source == null )
            {
                slaveDialog.setStatus("Binding cancelled by user.");
                return;
            }
View Full Code Here


    private void addAutomationButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addAutomationButtonActionPerformed
       
        String name = Automation.DEFAULT_NAME + " #" + String.valueOf( modbusPalProject.idGenerator.createID() );
        Automation automation = new Automation( name );
        modbusPalProject.addAutomation(automation);

    }//GEN-LAST:event_addAutomationButtonActionPerformed
View Full Code Here

     * Starts all the automations of the project
     */
    public void startAllAutomations()
    {
        System.out.printf("[%s] Start all automations\r\n", modbusPalProject.getName());
        Automation automations[] = modbusPalProject.getAutomations();
        for(int i=0; i<automations.length; i++)
        {
            automations[i].start();
        }
    }
View Full Code Here

     * Stops all the automations of the project
     */
    public void stopAllAutomations()
    {
        System.out.printf("[%s] Stop all automations\r\n", modbusPalProject.getName());
        Automation automations[] = modbusPalProject.getAutomations();
        for(int i=0; i<automations.length; i++)
        {
            automations[i].stop();
        }
    }
View Full Code Here

TOP

Related Classes of modbuspal.automation.Automation

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.