Package fr.soleil.salsa.comete.key

Examples of fr.soleil.salsa.comete.key.SensorKey


        @Override
        public SensorReport doInBackground() {
            SensorReport report;

            factoryClassName = SalsaDAOFactory.class.getName();
            sensorKRead = new SensorKey(sensor, factoryClassName, SensorKey.DataMode.READ);
            sensorKWrite = new SensorKey(sensor, factoryClassName, SensorKey.DataMode.WRITE);
            sensorStateKey = new SensorStateKey(sensor, factoryClassName);

            try {
                report = SensorDeviceApi.getSensorReport(sensor.getName());
                DimensionType dimensionType = report.getDimensionType();
View Full Code Here


            }
        }

        @Override
        protected void generateKeys() {
            deviceKRead = new SensorKey(device, factoryClassName, SensorKey.DataMode.READ);
            deviceKWrite = new SensorKey(device, factoryClassName, SensorKey.DataMode.WRITE);
            deviceStateKey = new SensorStateKey(device, factoryClassName);
        }
View Full Code Here

                }

                dao = actuatorScalarDAO;
            }
            else if (abstractKey instanceof SensorKey) {
                SensorKey sKey = (SensorKey) abstractKey;

                dao = new SensorScalarDAO(((SensorKey) abstractKey).getSensor(),
                        getErrorController());

                if (sKey.getDataMode() == DataMode.READ) {
                    ((SensorScalarDAO) dao).setDataMode(ASensorDAO.DataMode.READ);
                }

                if (sKey.getDataMode() == DataMode.WRITE) {
                    ((SensorScalarDAO) dao).setDataMode(ASensorDAO.DataMode.WRITE);
                }
            }

            numberDAOCache.register(abstractKey, dao);
View Full Code Here

            }
        }

        @Override
        protected void generateKeys() {
            deviceKRead = new SensorKey(device, factoryClassName, SensorKey.DataMode.READ);
            deviceKWrite = new SensorKey(device, factoryClassName, SensorKey.DataMode.WRITE);
            deviceStateKey = new SensorStateKey(device, factoryClassName);
        }
View Full Code Here

                }

                dao = actuatorScalarDAO;
            }
            else if (abstractKey instanceof SensorKey) {
                SensorKey sKey = (SensorKey) abstractKey;

                dao = new SensorScalarDAO(((SensorKey) abstractKey).getSensor(),
                        getErrorController());

                if (sKey.getDataMode() == DataMode.READ) {
                    ((SensorScalarDAO) dao).setDataMode(ASensorDAO.DataMode.READ);
                }

                if (sKey.getDataMode() == DataMode.WRITE) {
                    ((SensorScalarDAO) dao).setDataMode(ASensorDAO.DataMode.WRITE);
                }
            }

            numberDAOCache.register(abstractKey, dao);
View Full Code Here

            }
        }

        @Override
        protected void generateKeys() {
            deviceKRead = new SensorKey(device, factoryClassName, SensorKey.DataMode.READ);
            deviceKWrite = new SensorKey(device, factoryClassName, SensorKey.DataMode.WRITE);
            deviceStateKey = new SensorStateKey(device, factoryClassName);
        }
View Full Code Here

                }

                dao = actuatorScalarDAO;
            }
            else if (abstractKey instanceof SensorKey) {
                SensorKey sKey = (SensorKey) abstractKey;

                dao = new SensorScalarDAO(((SensorKey) abstractKey).getSensor(),
                        getErrorController());

                if (sKey.getDataMode() == DataMode.READ) {
                    ((SensorScalarDAO) dao).setDataMode(ASensorDAO.DataMode.READ);
                }

                if (sKey.getDataMode() == DataMode.WRITE) {
                    ((SensorScalarDAO) dao).setDataMode(ASensorDAO.DataMode.WRITE);
                }
            }

            numberDAOCache.register(abstractKey, dao);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.comete.key.SensorKey

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.