Package fr.soleil.salsa.entity.event

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


        super(view, config, errorController);
    }

    @Override
    protected ISensor generateDevice() {
        return new SensorModel();
    }
View Full Code Here


                view.clearSensors();
                for (int i = 0; i < sensors.size(); i++) {

                    ISensor s = sensors.get(i);
                    if (s.isEnabled()) {
                        SensorModel eSensort = (SensorModel) s;
                        eSensort.addListener(sensorListener);
                        view.addSensor(s.getName(), s.getName());
                        if (i == postScanBehaviour.getSensor()) {
                            view.setSensorSelected(i);
                        }
                    }
View Full Code Here

                view.clearSensors();
                for (int i = 0; i < sensors.size(); i++) {

                    ISensor s = sensors.get(i);
                    if (s.isEnabled()) {
                        SensorModel eSensort = (SensorModel) s;
                        eSensort.addListener(sensorListener);
                        view.addSensor(s.getName(), s.getName());
                        if (i == postScanBehaviour.getSensor()) {
                            view.setSensorSelected(i);
                        }
                    }
View Full Code Here

    }

    @Override
    public void addSensor(String sensorName) {
        if (getDevice(sensorName, sensorsList) == null) {
            ISensor device = new SensorModel();
            device.setName(sensorName);
            device.setEnabled(true);
            sensorsList.add(device);
        }
    }
View Full Code Here

                List<ISensor> sensors = config.getSensorsList();
                view.clearSensors();
                for (int i = 0; i < sensors.size(); i++) {

                    ISensor s = sensors.get(i);
                    SensorModel eSensort = (SensorModel) s;
                    eSensort.addListener(sensorListener);
                    view.addSensor(s.getName(), s.getName());
                    if (i == postScanBehaviour.getSensor()) {
                        view.setSensorSelected(i);
                    }
                }
View Full Code Here

            IDevice tmpDevice = super.getDevice(deviceName, deviceList);
            newDevice = tmpDevice;
            if (tmpDevice == null) {
                LOGGER.trace("add device {} from {}", deviceName, config);
                if (device instanceof ISensor) {
                    ISensor sensor = new SensorModel();
                    sensor.setName(deviceName);
                    sensor.setEnabled(false);
                    ((List<ISensor>) deviceList).add(sensor);
                    newDevice = sensor;
                }
                if (device instanceof IActuator) {
                    IActuator actuator = new ActuatorModel();
View Full Code Here

        super(view, config, errorController);
    }

    @Override
    protected ISensor generateDevice() {
        return new SensorModel();
    }
View Full Code Here

        super(view, config, errorController);
    }

    @Override
    protected ISensor generateDevice() {
        return new SensorModel();
    }
View Full Code Here

        super(view, config, errorController);
    }

    @Override
    protected ISensor generateDevice() {
        return new SensorModel();
    }
View Full Code Here

                view.clearSensors();
                for (int i = 0; i < sensors.size(); i++) {

                    ISensor s = sensors.get(i);
                    if (s.isEnabled()) {
                        SensorModel eSensort = (SensorModel) s;
                        eSensort.addListener(sensorListener);
                        view.addSensor(s.getName(), s.getName());
                        if (i == postScanBehaviour.getSensor()) {
                            view.setSensorSelected(i);
                        }
                    }
View Full Code Here

TOP

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

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.