if (Main.Components.containsKey(param1)) {
Component c = Main.Components.get(param1);
Oscilloscope o = (Oscilloscope) c;
System.out.print("State list of oscilloscope " + param1 + ": ");
output += "State list of oscilloscope " + param1 + ": \n";
output += o.showMemory();
//System.out.println();
} else {
System.out.println("Ocilloscope with this name does not exists. Create it first.");