Package fr.soleil.salsa.entity.event

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


            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


        super(config, errorController);
    }

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

        setDimension(dimension);

    }

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

        setDimension(dimension);

    }

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

    public int hashCode() {
        return this.name != null ? this.name.hashCode() : 0;
    }

    protected IDevice initModel() {
        return new SensorModel(this);
    }
View Full Code Here

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

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

        setDimension(dimension);

    }

    public void addSensor(String sensorName) {
        ISensor device = new SensorModel();
        device.setName(sensorName);
        device.setEnabled(true);
        sensorsList.add(device);
    }
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

        super(view, config, errorController);
    }

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

        setDimension(dimension);

    }

    public void addSensor(String sensorName) {
        ISensor device = new SensorModel();
        device.setName(sensorName);
        device.setEnabled(true);
        sensorsList.add(device);
    }
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.