Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.ISensor


                        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


                // Sensors
                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);
                    }
                }
                if (sensors.size() == 0) {
View Full Code Here

    @Override
    public void addSensor(String sensorName) {
        if (sensorName != null && !sensorName.isEmpty()) {
            sensorName = sensorName.trim();
            if (!belongTo(sensorName, getSensorsList())) {
                ISensor device = new SensorImpl();
                device.setName(sensorName);
                device.setEnabled(true);
                sensorsList.add(device);
            }
        }
    }
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

        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

                indent("  actuator" + i + " : " + actuator.getName() + (actuator.isEnabled() ? " (on)" : " (off)"), _d);
            }
        }

        for (int i = 0; i < c1.getSensorsList().size(); i++) {
            ISensor sensor = c1.getSensorsList().get(i);
            indent("  sensor" + i + " : " + sensor.getName() + (sensor.isEnabled() ? " (on)" : " (off)"), _d);
        }
        indent("  timestamp : " + _c.getTimestamp(), _d);

        /*
         * System.out.println("\tscanNumber" + _c.get);
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

                        + (actuator.isEnabled() ? " (on)" : " (off)"), _d);
            }
        }

        for (int i = 0; i < c1.getSensorsList().size(); i++) {
            ISensor sensor = c1.getSensorsList().get(i);
            indent("  sensor" + i + " : " + sensor.getName()
                    + (sensor.isEnabled() ? " (on)" : " (off)"), _d);
        }
        indent("  timestamp : " + _c.getTimestamp(), _d);

        /*
         * System.out.println("\tscanNumber" + _c.get);
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

                        + (actuator.isEnabled() ? " (on)" : " (off)"), _d);
            }
        }

        for (int i = 0; i < c1.getSensorsList().size(); i++) {
            ISensor sensor = c1.getSensorsList().get(i);
            indent("  sensor" + i + " : " + sensor.getName()
                    + (sensor.isEnabled() ? " (on)" : " (off)"), _d);
        }
        indent("  timestamp : " + _c.getTimestamp(), _d);

        /*
         * System.out.println("\tscanNumber" + _c.get);
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.