Package fr.soleil.salsa.entity.impl

Examples of fr.soleil.salsa.entity.impl.SensorImpl


        tb.setEnabled(true);
        nc.getTimebaseList().add(tb);
        // Sensors

        for (int i = 0; i < _nbSensors; i++) {
            ISensor s = new SensorImpl();
            s.setName("/mon/sensor/" + i);
            s.setEnabled(i % 2 == 1);
            nc.getSensorsList().add(s);
        }
        // Dimension
        Dimension1DImpl dim = new Dimension1DImpl();
        dim.setTrajectoriesList(new ArrayList<ITrajectory1D>());
View Full Code Here


        tb.setEnabled(true);
        nc.getTimebaseList().add(tb);
        // Sensors

        for (int i = 0; i < _nbSensors; i++) {
            ISensor s = new SensorImpl();
            s.setName("/mon/sensor/" + i);
            s.setEnabled(i % 2 == 1);
            nc.getSensorsList().add(s);
        }
        // Dimension
        Dimension1DImpl dim = new Dimension1DImpl();
        dim.setTrajectoriesList(new ArrayList<ITrajectory1D>());
View Full Code Here

        tb.setEnabled(true);
        nc.getTimebaseList().add(tb);
        // Sensors

        for (int i = 0; i < _nbSensors; i++) {
            ISensor s = new SensorImpl();
            s.setName("/mon/sensor/" + i);
            s.setEnabled(i % 2 == 1);
            nc.getSensorsList().add(s);
        }
        // Dimension
        Dimension1DImpl dim = new Dimension1DImpl();
        dim.setTrajectoriesList(new ArrayList<ITrajectory1D>());
View Full Code Here

                case ACTUATOR:
                    deviceImp = new ActuatorImpl();
                    ((List<IActuator>) returnDeviceList).add((IActuator) deviceImp);
                    break;
                case SENSOR:
                    deviceImp = new SensorImpl();
                    ((List<ISensor>) returnDeviceList).add((ISensor) deviceImp);
                    break;
                case TIMEBASE:
                    deviceImp = new TimebaseImpl();
                    ((List<ITimebase>) returnDeviceList).add((ITimebase) deviceImp);
View Full Code Here

                        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);
                            }
View Full Code Here

        tb.setEnabled(true);
        nc.getTimebaseList().add(tb);
        // Sensors

        for (int i = 0; i < _nbSensors; i++) {
            ISensor s = new SensorImpl();
            s.setName("/mon/sensor/" + i);
            s.setEnabled(i % 2 == 1);
            nc.getSensorsList().add(s);
        }
        // Dimension
        Dimension1DImpl dim = new Dimension1DImpl();
        dim.setTrajectoriesList(new ArrayList<ITrajectory1D>());
View Full Code Here

                double[] sensorValuesArray;
                DeviceAttribute sensorValueAttribute;
                for (int sensorIndex = 0; sensorIndex < sensorsNamesArray.length
                        && sensorIndex < sensorsValueKeysArray.length; ++sensorIndex) {
                    sensorName = sensorsNamesArray[sensorIndex];
                    sensor = new SensorImpl();
                    sensor.setName(sensorName);
                    sensor.setEnabled(true);
                    scanResult.getSensorsList().add(sensor);

                    sensorValueKey = sensorsValueKeysArray[sensorIndex];
View Full Code Here

                        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);
                            }
View Full Code Here

                    case ACTUATOR:
                        deviceImp = new ActuatorImpl();
                        ((List<IActuator>) returnDeviceList).add((IActuator) deviceImp);
                        break;
                    case SENSOR:
                        deviceImp = new SensorImpl();
                        ((List<ISensor>) returnDeviceList).add((ISensor) deviceImp);
                        break;
                    case TIMEBASE:
                        deviceImp = new TimebaseImpl();
                        ((List<ITimebase>) returnDeviceList).add((ITimebase) deviceImp);
View Full Code Here

                        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);
                            }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.impl.SensorImpl

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.