@ Override public void set_attribute_config_3 ( final AttributeConfig_3 [ ] newConf ) throws DevFailed { MDC . setContextMap ( contextMap ) ; xlogger . entry ( ) ; checkInitialization ( ) ; deviceMonitoring . startRequest ( "set_attribute_config_3" ) ; for ( final AttributeConfig_3 attributeConfig : newConf ) { final String attributeName = attributeConfig . name ; final AttributeImpl attribute = AttributeGetterSetter . getAttribute ( attributeName , attributeList ) ; if ( attribute . getName ( ) . equals ( STATE_NAME ) || attribute . getName ( ) . equals ( STATUS_NAME ) ) { throw DevFailedUtils . newDevFailed ( "set attribute is not possible for " + attribute . getName ( ) ) ; } if ( ! attribute . getFormat ( ) . equals ( attributeConfig . data_format ) || ! attribute . getWritable ( ) . equals ( attributeConfig . writable ) || ! attribute . getDispLevel ( ) . equals ( attributeConfig . level ) || attribute . getTangoType ( ) != attributeConfig . data_type ) { throw DevFailedUtils . newDevFailed ( ExceptionMessages . ATTR_NOT_ALLOWED , "not a good config" ) ; } final AttributePropertiesImpl props = TangoIDLAttributeUtil . toAttributeProperties ( attributeConfig ) ; logger . debug ( "set_attribute_config_3: {}" , props ) ; attribute . setProperties ( props ) ; } xlogger . exit ( ) ; }
Set some attribute configs . IDL3 version