/**
* 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";
}