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);
}
}