Package sw_digitalworks.Model

Examples of sw_digitalworks.Model.Oscilloscope



                        }

                        if (c.getName().substring(0, 3).equals("osc")) {
                            Oscilloscope o = (Oscilloscope) c;
                            System.out.print("  Memory: ");
                            output += "  Memory: \n";
                            output += o.showMemory();


                        }

                    } else {
View Full Code Here


    private void listOscilloscope() {
        if (!param1.equals("")) {
            if (param2.equals("")) {
                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.");
View Full Code Here

    /**
     * Oscilloscope létrehozása a osc parancs hatására ezzel a függvénnyel történik
     */
    private void createOscilloscope() throws FileNotFoundException, IOException {
        if (!param1.equals("") && param2.equals("")) {
            Oscilloscope osc = new Oscilloscope();
            Main.controller.getDisplayView().addComponentView(new OscilloscopeView(getPosX(param1), getPosY(param1), osc));
            this.ExecuteCommand("connect "+SystemClock.getInstance().getName()+",0 "+osc.getName()+",0");
            System.out.println(osc.getName() + " CREATED.");
            output += osc.getName() + " CREATED.\n";
            //Prototype.PrintStateAfterUpdate(osc);


        } else {
            System.out.println("Bad command for creating osc. Try osc (x,y)");
View Full Code Here

TOP

Related Classes of sw_digitalworks.Model.Oscilloscope

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.