Package fr.soleil.salsa.api.item

Examples of fr.soleil.salsa.api.item.ActuatorReport


     * Generates and return a report about an actuator.
     * @param device
     * @param report
     */
    public static ActuatorReport getActuatorReport(IActuator actuator) throws SalsaDeviceException {
        ActuatorReport report = new ActuatorReport();
        DeviceConnector.fillDeviceReport(actuator, report);
        return report;
    }
View Full Code Here


            super("RefreshActuatorWorker");
        }

        @Override
        public ActuatorReport doInBackground() {
            ActuatorReport report;
            IActuator actuatorImpl = (IActuator) AutoCopier.toImpl(actuator);
            try {
                report = ActuatorDeviceApi.getActuatorReport(actuatorImpl);
            }
            catch (SalsaDeviceException exception) {
View Full Code Here

            return report;
        }

        @Override
        public void done() {
            ActuatorReport report = get();
            synchronized (viewDeviceLock) {
                if (report != null) {
                    view.setDimensionType(convertDimensionType(report.getDimensionType()));
                    view.setReadOnly(!report.isWriteable());
                }
                else {
                    Salsa.getApplicationController().errorMessage(exception.getMessage());
                    view.setDimensionType(convertDimensionType(DimensionType.SCALAR));
                    view.setReadOnly(true);
View Full Code Here

     * Generates and return a report about an actuator.
     *
     * @param actuatorName The name of the actuator
     */
    public static ActuatorReport getActuatorReport(String actuatorName) throws SalsaDeviceException {
        ActuatorReport report = new ActuatorReport();
        DeviceConnector.fillDeviceReport(actuatorName, report);
        return report;
    }
View Full Code Here

            super("RefreshActuatorWorker");
        }

        @Override
        public ActuatorReport doInBackground() {
            ActuatorReport report;
            IActuator actuatorImpl = (IActuator) AutoCopier.toImpl(actuator);
            try {
                report = ActuatorDeviceApi.getActuatorReport(actuatorImpl);
            }
            catch (SalsaDeviceException exception) {
View Full Code Here

            return report;
        }

        @Override
        public void done() {
            ActuatorReport report = get();
            synchronized (viewDeviceLock) {
                if (report != null) {
                    view.setDimensionType(convertDimensionType(report.getDimensionType()));
                    view.setReadOnly(!report.isWriteable());
                }
                else {
                    Salsa.getApplicationController().errorMessage(exception.getMessage());
                    view.setDimensionType(convertDimensionType(DimensionType.SCALAR));
                    view.setReadOnly(true);
View Full Code Here

            super("RefreshActuatorWorker");
        }

        @Override
        public ActuatorReport doInBackground() {
            ActuatorReport report;
            try {
                report = ActuatorDeviceApi.getActuatorReport(actuator.getName());
            }
            catch (SalsaDeviceException exception) {
                if (exception.isConsoleDisplay()) {
View Full Code Here

            return report;
        }

        @Override
        public void done() {
            ActuatorReport report = get();
            synchronized (viewDeviceLock) {
                if (report != null) {
                    view.setDimensionType(convertDimensionType(report.getDimensionType()));
                    view.setReadOnly(!report.isWriteable());
                }
                else {
                    errorMessage(exception.getMessage());
                    view.setDimensionType(convertDimensionType(DimensionType.SCALAR));
                    view.setReadOnly(true);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.api.item.ActuatorReport

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.