Package fr.soleil.salsa.comete.key

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


        AbstractDAO<Number> dao = numberDAOCache.lookup(abstractKey);

        if (dao == null) {
            if (abstractKey instanceof ActuatorKey) {
                ActuatorKey actuatorKey = (ActuatorKey) abstractKey;

                ActuatorScalarDAO actuatorScalarDAO = new ActuatorScalarDAO(actuatorKey
                        .getActuator(), getErrorController());

                switch (actuatorKey.getDataMode()) {
                    case READ:
                        actuatorScalarDAO.setDataMode(AActuatorDAO.DataMode.READ);
                        break;
                    case WRITE:
                        actuatorScalarDAO.setDataMode(AActuatorDAO.DataMode.WRITE);
View Full Code Here


        AbstractDAO<Number> dao = numberDAOCache.lookup(abstractKey);

        if (dao == null) {
            if (abstractKey instanceof ActuatorKey) {
                ActuatorKey actuatorKey = (ActuatorKey) abstractKey;

                ActuatorScalarDAO actuatorScalarDAO = new ActuatorScalarDAO(actuatorKey
                        .getActuator(), getErrorController());

                switch (actuatorKey.getDataMode()) {
                    case READ:
                        actuatorScalarDAO.setDataMode(AActuatorDAO.DataMode.READ);
                        break;
                    case WRITE:
                        actuatorScalarDAO.setDataMode(AActuatorDAO.DataMode.WRITE);
View Full Code Here

            stateDao = ((ActuatorStateDAO) factory.createStringDAO(deviceStateKey));
        }

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

            stateDao = ((ActuatorStateDAO) factory.createStringDAO(deviceStateKey));
        }

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

        AbstractDAO<Number> dao = numberDAOCache.lookup(abstractKey);

        if (dao == null) {
            if (abstractKey instanceof ActuatorKey) {
                ActuatorKey actuatorKey = (ActuatorKey) abstractKey;

                ActuatorScalarDAO actuatorScalarDAO = new ActuatorScalarDAO(actuatorKey
                        .getActuator(), getErrorController());

                switch (actuatorKey.getDataMode()) {
                    case READ:
                        actuatorScalarDAO.setDataMode(AActuatorDAO.DataMode.READ);
                        break;
                    case WRITE:
                        actuatorScalarDAO.setDataMode(AActuatorDAO.DataMode.WRITE);
View Full Code Here

                report = null;
                this.exception = exception;
            }

            factoryClassName = SalsaDAOFactory.class.getName();
            actuatorKRead = new ActuatorKey(actuator, factoryClassName, ActuatorKey.DataMode.READ);
            actuatorKWrite = new ActuatorKey(actuator, factoryClassName, ActuatorKey.DataMode.WRITE);
            actuatorStateKey = new ActuatorStateKey(actuator, factoryClassName);

            // Resume the DAO if they were suspended.
            // Also, it makes the DAO factory initialize them and store them in the cache if this
            // was not done already, lessening the work done on the EDT.
View Full Code Here

TOP

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

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.