Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.ISensor


    }

    @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


                        // Sensors
                        actionName = "read_attribute(\"" + CurrentScanDataModel.SENSORS_DATA_LIST + "\")";
                        String[] sensorsValueKeysArray = CurrentScanDataModel.getSensors(scanServerName);

                        ISensor sensor = null;
                        String sensorName = null;
                        String entityName = null;

                        if (sensorsValueKeysArray != null) {
                            for (String sensorValueKey : sensorsValueKeysArray) {
                                entityName = TangoDeviceHelper.getEntityName(sensorValueKey);
                                sensorName = TangoAttributeHelper.getLabel(scanServerName, entityName);
                                sensor = new SensorImpl();
                                sensor.setName(sensorName);
                                sensor.setEnabled(true);
                                scanResult.getSensorsList().add(sensor);
                                sensor.setScanServerAttributeName(sensorValueKey);
                            }
                        }

                        // Actuators dimension X
                        actionName = "read_attribute(\"" + CurrentScanDataModel.ACTUATORS_DATA_LIST + " "
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.ISensor

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.