Package sw_digitalworks.Model

Examples of sw_digitalworks.Model.Inverter


    /**
     * Inverter létrehozása az inv parancs hatására ezzel a függvénnyel történik
     */
    public void createInverter() {
        if (param1.equals("")){
            Inverter i = new Inverter();
            Main.controller.getDisplayView().addComponentView(new InverterView(0, 0, i));
            System.out.println(i.getName() + " CREATED.");
            output += i.getName() + " CREATED.\n";
        } else if ((param2.equals(""))) {
            if (Pattern.matches("\\(\\d{1,4}\\,\\d{1,4}\\)", param1)) {
                Inverter i = new Inverter();
                Main.controller.getDisplayView().addComponentView(new InverterView(getPosX(param1), getPosY(param1), i));
                System.out.println(i.getName() + " CREATED.");
                output += i.getName() + " CREATED.\n";
          } else {
          System.out.println("Bad command for creating inverter. Try inv");
          output += "Bad command for creating inverter. Try inv\n";
          }

View Full Code Here

TOP

Related Classes of sw_digitalworks.Model.Inverter

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.