Package fr.soleil.salsa.entity.event

Examples of fr.soleil.salsa.entity.event.ActuatorModel


     */
    public static List<Integer> diff(List<ActuatorModel> l1, List<IActuator> l2) {
        List<Integer> result = new ArrayList<Integer>();
        for (int i = 0; i < l1.size(); i++) {

            ActuatorModel a = l1.get(i);

            if (!myContains(l2, a)) {
                result.add(i);
            }
        }
View Full Code Here


                            if (actuators != null) {
                                for (int i = 0; i < actuators.size(); i++) {
                                    IActuator a = actuators.get(i);
                                    if (a.isEnabled()) {
                                        if (a instanceof ActuatorModel) {
                                            ActuatorModel eActuator = (ActuatorModel) a;
                                            eActuator.addListener(actuatorListener);
                                        }
                                        view.addActuator(a.getName(), a.getName());
                                        if (i == postScanBehaviour.getActuator()) {
                                            view.setActuatorSelected(i);
                                        }
View Full Code Here

        return timebaseListModel;
    }

    @Override
    public void addActuator(String actuatorName, boolean yActuator) {
        IActuator device = new ActuatorModel();
        device.setName(actuatorName);
        device.setEnabled(true);

        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }
View Full Code Here

                        view.clearActuators();
                        if (actuators != null) {
                            for (int i = 0; i < actuators.size(); i++) {
                                IActuator a = actuators.get(i);
                                if (a.isEnabled()) {
                                    ActuatorModel eActuator = (ActuatorModel) a;
                                    eActuator.addListener(actuatorListener);
                                    view.addActuator(a.getName(), a.getName());
                                    if (i == postScanBehaviour.getActuator()) {
                                        view.setActuatorSelected(i);
                                    }
                                }
View Full Code Here

                .equals(ScanType.SCAN_K))) && deviceList.size() == 1);
    }

    @Override
    protected IActuator generateDevice() {
        return new ActuatorModel();
    }
View Full Code Here

        return timebaseListModel;
    }

    @Override
    public void addActuator(String actuatorName, boolean yActuator) {
        IActuator device = new ActuatorModel();
        device.setName(actuatorName);
        device.setEnabled(true);

        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }
View Full Code Here

     */
    public static List<Integer> diff(List<ActuatorModel> l1, List<IActuator> l2) {
        List<Integer> result = new ArrayList<Integer>();
        for (int i = 0; i < l1.size(); i++) {

            ActuatorModel a = l1.get(i);

            if (!myContains(l2, a)) {
                result.add(i);
            }
        }
View Full Code Here

                .size() == 1);
    }

    @Override
    protected IActuator generateDevice() {
        return new ActuatorModel();
    }
View Full Code Here

     */
    public static List<Integer> diff(List<ActuatorModel> l1, List<IActuator> l2) {
        List<Integer> result = new ArrayList<Integer>();
        for (int i = 0; i < l1.size(); i++) {

            ActuatorModel a = l1.get(i);

            if (!myContains(l2, a)) {
                result.add(i);
            }
        }
View Full Code Here

     */
    public static List<Integer> diff(List<ActuatorModel> l1, List<IActuator> l2) {
        List<Integer> result = new ArrayList<Integer>();
        for (int i = 0; i < l1.size(); i++) {

            ActuatorModel a = l1.get(i);

            if (!myContains(l2, a)) {
                result.add(i);
            }
        }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.event.ActuatorModel

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.