Package sw_digitalworks.Model

Examples of sw_digitalworks.Model.LED


//        Set<InPort> inports = new HashSet<InPort>();
//        Set<OutPort> outports = new HashSet<OutPort>();

        // TODO code application logic here
        //LEDList leds = new LEDList();
        ComponentModel.leds.add(new LED("LED 1"));
       ComponentModel.leds.add(new LED("LED 2"));
//        inports.add(leds.getByName("LED 1").getInPort());
//        inports.add(leds.getByName("LED 1").getInPort());
//        ComponentModel.add(leds.getByName("LED 2"));
        InteractiveInput ip1 = new InteractiveInput("IP 1");
        InteractiveInput ip2 = new InteractiveInput("IP 2");
View Full Code Here


    /**
     * LED létrehozása a led parancs hatására ezzel a függvénnyel történik
     */
    private void createLED() {
        if (param1.equals("") && param2.equals("")) {
            LED led = new LED();
            Main.controller.getDisplayView().addComponentView(new LEDView(getPosX(param1), getPosY(param1), led));
            System.out.println(led.getName() + " CREATED.");
            output += led.getName() + " CREATED.\n";
            //Prototype.PrintStateAfterUpdate(led);


        } else if (Pattern.matches("\\(\\d{1,4}\\,\\d{1,4}\\)", param1) && param2.equals("") && param3.equals("")) {
            LED led = new LED();
            Main.controller.getDisplayView().addComponentView(new LEDView(getPosX(param1), getPosY(param1), led));
            System.out.println(led.getName() + " CREATED.");
            output += led.getName() + " CREATED.\n";


        } else {
            System.out.println("Bad command for creating led. Try led");
            output += "Bad command for creating led. Try led\n";
View Full Code Here

TOP

Related Classes of sw_digitalworks.Model.LED

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.