Package fr.soleil.salsa.entity.event

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


                    sensor.setEnabled(true);
                    ((List<ISensor>) deviceList).add(sensor);
                    newDevice = sensor;
                }
                if (device instanceof IActuator) {
                    IActuator actuator = new ActuatorModel();
                    actuator.setName(deviceName);
                    actuator.setEnabled(true);
                    ((List<IActuator>) deviceList).add(actuator);
                    newDevice = actuator;
                }
                if (device instanceof ITimebase) {
                    ITimebase timebase = new TimebaseModel();
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

    @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

    @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

                    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

                .equals(ScanType.SCAN_K))) && deviceList.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

                .equals(ScanType.SCAN_K))) && deviceList.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

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.