Package org.tango.server.attribute

Examples of org.tango.server.attribute.AttributeConfiguration


                private final AtomicReference<org.tango.server.attribute.AttributeValue> value =
                        new AtomicReference<org.tango.server.attribute.AttributeValue>(new org.tango.server.attribute.AttributeValue(null));

                @Override
                public AttributeConfiguration getConfiguration() throws DevFailed {
                    AttributeConfiguration configuration = new AttributeConfiguration();
                    configuration.setName(wrapped.getName());
                    try {
                        TangoDataType<?> dataType = TangoDataTypes.forString(wrapped.getType());
                        configuration.setTangoType(dataType.getAlias(), AttrDataFormat.SCALAR);
                        configuration.setType(dataType.getDataType());
                        configuration.setWritable(AttrWriteType.READ_WRITE);
                        return configuration;
                    } catch (UnknownTangoDataType unknownTangoDataType) {
                        throw new RuntimeException(unknownTangoDataType);
                    }
                }
View Full Code Here

TOP

Related Classes of org.tango.server.attribute.AttributeConfiguration

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.