// /////////////////
@Init()
public void init() throws DevFailed {
// create an double write only attribute
final DynamicAttributeTest attr = new DynamicAttributeTest(double.class);
attr.getConfiguration().setWritable(AttrWriteType.WRITE);
attr.getConfiguration().setName("double_scalar_w");
dynManager.addAttribute(attr);
attr.getConfiguration().getAttributeProperties().setMaxAlarm("7.0");
attr.getConfiguration().getAttributeProperties().setMinAlarm("-1.0");
final Random rand = new Random();
// set default value
doubleScalarRw = 0.0;
doubleScalarR = 0.0;