Package fr.esrf.TangoApi

Examples of fr.esrf.TangoApi.AttributeProxy


        // Data and data format.
        try {
            TangoAttribute tangoAttribute = new TangoAttribute(name);
            String format = null;
            try {
                AttributeProxy attributeProxy = tangoAttribute.getAttributeProxy();
                if (attributeProxy != null) {
                    AttributeInfo attributeInfo = attributeProxy.get_info();
                    if (attributeInfo != null) {
                        format = attributeInfo.format;
                    }
                }
            }
View Full Code Here


     * @param device
     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeProxy getAttributeProxy(IDevice device) throws SalsaDeviceException {
        AttributeProxy attributeProxy = null;
        if (device != null) {
            String name = device.getName();
            if ((name != null) && !name.isEmpty()) {
                try {
                    attributeProxy = TangoAttributeHelper.getAttributeProxy(name);
View Full Code Here

     * @return
     * @throws SalsaDeviceException
     */
    private static AttributeInfo getAttributeInfo(IDevice device) throws SalsaDeviceException {
        AttributeInfo attributeInfo = null;
        AttributeProxy attributeProxy = getAttributeProxy(device);
        if (attributeProxy != null) {
            try {
                attributeInfo = attributeProxy.get_info();
            } catch (Exception e) {
                SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                        "Cannot read attribute info for attribute " + device.getName(), e);
                throw salsaDeviceException;
            }
View Full Code Here

TOP

Related Classes of fr.esrf.TangoApi.AttributeProxy

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.