Examples of ActuatorModel


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

    @Override
    public void addActuator(String actuatorName, boolean yActuator) {
        List<IActuator> actuatorList = getActuatorList();
        if (getDevice(actuatorName, actuatorList) == null) {
            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

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

                    IConfig1D config1d = (IConfig1D) config;
                    List<IActuator> actuators = config1d.getDimensionX().getActuatorsList();
                    view.clearActuators();
                    for (int i = 0; i < actuators.size(); i++) {
                        IActuator a = actuators.get(i);
                        ActuatorModel eActuator = (ActuatorModel) a;
                        eActuator.addListener(actuatorListener);
                        view.addActuator(a.getName(), a.getName());
                        if (i == postScanBehaviour.getActuator()) {
                            view.setActuatorSelected(i);
                        }
                    }
View Full Code Here

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

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

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

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

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

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

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

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

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

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

        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

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

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

                IConfig1D config1d = (IConfig1D) config;
                List<IActuator> actuators = config1d.getDimensionX().getActuatorsList();
                view.clearActuators();
                for (int i = 0; i < actuators.size(); i++) {
                    IActuator a = (IActuator) actuators.get(i);
                    ActuatorModel eActuator = (ActuatorModel) a;
                    eActuator.addListener(actuatorListener);
                    view.addActuator(a.getName(), a.getName());
                    if (i == postScanBehaviour.getActuator()) {
                        view.setActuatorSelected(i);
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.